Freigeben über


LogBufferingFilterRule Class

Definition

Defines a rule used to filter log messages for purposes of further buffering.

public ref class LogBufferingFilterRule
public class LogBufferingFilterRule
type LogBufferingFilterRule = class
Public Class LogBufferingFilterRule
Inheritance
LogBufferingFilterRule

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.

Constructors

Name Description
LogBufferingFilterRule(String, Nullable<LogLevel>, Nullable<Int32>, String, IReadOnlyList<KeyValuePair<String,Object>>)

Initializes a new instance of the LogBufferingFilterRule class.

Properties

Name Description
Attributes

Gets the log state attributes of messages where this rule applies to.

CategoryName

Gets the logger category name this rule applies to.

EventId

Gets the event ID of messages where this rule applies to.

EventName

Gets the name of the event this rule applies to.

LogLevel

Gets the maximum LogLevel of messages this rule applies to.

Applies to