InstrumentationOptions.EnableLogging Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether OpenTelemetry log export is enabled.
When false, a provider-scoped None
filter is added to OpenTelemetryLoggerProvider, suppressing all log records
from reaching any OpenTelemetry exporter (Azure Monitor, OTLP, Console).
Other logging providers (console logger, file logger, etc.) are not affected.
Default: true.
public bool EnableLogging { get; set; }
member this.EnableLogging : bool with get, set
Public Property EnableLogging As Boolean