Official Content

Indicates the Log provider to use.

Scope

Generators: .NET, .NET Framework, Java
Level: Generator

Description

Values

ASP.NET trace The log is displayed on the ASP .NET trace (.NET Framework only).
Execute the trace.axd object to check the log.
Console The log is displayed on the Console Appender.
Event viewer The log is displayed on the Event viewer (.NET Framework only).
File Default value. The log is generated as a file.
Azure Application Insights The log is displayed in Azure Application Insights (.NET only).

The Log Output can also be set using an environment variable, as explained in Log settings with environment variables.

In the case of selecting Azure Application Insights as a Log provider, consider the following:

  • The Log Level must be set using the GX_LOG_LEVEL environment variable.
  • The APPLICATIONINSIGHTS_CONNECTION_STRING environment variable has to be defined and indicates the Connection String of the Application Insights resource.
    In Azure cloud, the environment variables are defined as App Settings.

image_2023112163153_1_png

Notes:

1. In .NET environment, when the Observability Provider property is set to Azure Monitor Application Insights / AWS Distro for OpenTelemetry, or OpenTelemetry values, the Log output property is ignored, and the corresponding Log provider is used: Azure Monitor, AWS Distro or OpenTelemetry, respectively.

2. Avoid setting the 'ASP.NET trace' and 'Event viewer' values when using the .NET Generator. Instead, it is recommended to use the 'Console' value to view the logs in /url/trace.axd

Runtime/Design time

This property applies only at design time.

How to apply changes

To apply the corresponding changes when the property value is configured, Build any object.

See Also

Log level property
HowTo: See trace information in applications hosted on .NET Cloud

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant