Lingua

GlobalLogBufferingOptions.IncludeScopes Property

Definition

Gets or sets a value indicating whether logging scopes are added to the attributes of log records when they're buffered.

public:
 property bool IncludeScopes { bool get(); void set(bool value); };
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public bool IncludeScopes { get; set; }
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
member this.IncludeScopes : bool with get, set
Public Property IncludeScopes As Boolean

Property Value

Attributes

Remarks

Only scopes that implement IEnumerable<KeyValuePair<string, object?>> are added, without their "{OriginalFormat}" pairs. Scope values are converted to strings and count toward MaxLogRecordSizeInBytes and MaxBufferSizeInBytes.

Applies to