<PackageReference Include="OpenTelemetry" Version="1.20.0" />

OpenTelemetry.Logs.OpenTelemetryLoggerOptions

Contains OpenTelemetry logging options.
public bool IncludeFormattedMessage { get; set; }

Gets or sets a value indicating whether or not formatted log message should be included on generated LogRecords. Default value: false.

public bool IncludeScopes { get; set; }

Gets or sets a value indicating whether or not log scopes should be included on generated LogRecords. Default value: false.

public bool ParseStateValues { get; set; }

Gets or sets a value indicating whether or not log state should be parsed into Attributes on generated LogRecords. Default value: false.

public string SchemaUrl { get; set; }

Gets or sets the optional schema URL of the instrumentation library reported for logs produced via the ILogger integration. Default value: null.

public string Version { get; set; }

Gets or sets the optional version of the instrumentation library reported for logs produced via the ILogger integration. Default value: null.

Adds processor to the options.

Adds a processor to the provider which will be retrieved using dependency injection.

Sets the ResourceBuilder from which the Resource associated with this provider is built from. Overwrites currently set ResourceBuilder.