GlobalLogBufferingOptions.Rules 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 the collection of LogBufferingFilterRule used for filtering log messages for the purpose of further buffering.
public:
property System::Collections::Generic::IList<Microsoft::Extensions::Diagnostics::Buffering::LogBufferingFilterRule ^> ^ Rules { System::Collections::Generic::IList<Microsoft::Extensions::Diagnostics::Buffering::LogBufferingFilterRule ^> ^ get(); void set(System::Collections::Generic::IList<Microsoft::Extensions::Diagnostics::Buffering::LogBufferingFilterRule ^> ^ value); };
[System.ComponentModel.DataAnnotations.Required]
public System.Collections.Generic.IList<Microsoft.Extensions.Diagnostics.Buffering.LogBufferingFilterRule> Rules { get; set; }
[<System.ComponentModel.DataAnnotations.Required>]
member this.Rules : System.Collections.Generic.IList<Microsoft.Extensions.Diagnostics.Buffering.LogBufferingFilterRule> with get, set
Public Property Rules As IList(Of LogBufferingFilterRule)
Property Value
- Attributes
Remarks
If a log entry matches a rule, it will be buffered. Consequently, it will later be emitted when the buffer is flushed. If a log entry does not match any rule, it will be emitted normally. If the buffer size limit is reached, the oldest buffered log entries will be dropped (not emitted!) to make room for new ones. If a log entry size is greater than MaxLogRecordSizeInBytes, it will not be buffered and will be emitted normally.