FilterLoggerSettings 类

定义

ILogger 记录的消息的筛选器设置。Filter settings for messages logged by an ILogger.

public ref class FilterLoggerSettings : Microsoft::Extensions::Logging::IFilterLoggerSettings, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::Extensions::Logging::LogLevel>>
public class FilterLoggerSettings : Microsoft.Extensions.Logging.IFilterLoggerSettings, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Logging.LogLevel>>
type FilterLoggerSettings = class
    interface IFilterLoggerSettings
    interface seq<KeyValuePair<string, LogLevel>>
    interface IEnumerable
Public Class FilterLoggerSettings
Implements IEnumerable(Of KeyValuePair(Of String, LogLevel)), IFilterLoggerSettings
继承
FilterLoggerSettings
实现

构造函数

FilterLoggerSettings()

属性

Switches

方法

Add(String, LogLevel)

为给定记录器类别名称和 LogLevel 添加筛选器。Adds a filter for given logger category name and LogLevel.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
TryGetSwitch(String, LogLevel)

显式界面实现

IEnumerable.GetEnumerator()
IEnumerable<KeyValuePair<String,LogLevel>>.GetEnumerator()
IFilterLoggerSettings.ChangeToken
IFilterLoggerSettings.Reload()

适用于