ConsoleLoggerOptions 类

定义

ConsoleLogger 的选项。

public ref class ConsoleLoggerOptions
public class ConsoleLoggerOptions
type ConsoleLoggerOptions = class
Public Class ConsoleLoggerOptions
继承
ConsoleLoggerOptions

构造函数

ConsoleLoggerOptions()

ConsoleLogger 的选项。

属性

DisableColors
已过时.
已过时.

true 时禁用颜色。

Format
已过时.
已过时.

获取或设置日志消息格式。

FormatterName

要使用的日志消息格式化程序的名称。

IncludeScopes
已过时.
已过时.

true 时包括范围。

LogToStandardErrorThreshold

获取或设置值,该值指示将写入到 Console.Error的消息的最小级别。

MaxQueueLength

获取或设置排队消息的最大数目。

QueueFullMode

获取或设置队列已满时所需的控制台记录器行为。

TimestampFormat
已过时.
已过时.

获取或设置用于在日志记录消息中设置时间戳的格式字符串。

UseUtcTimestamp
已过时.
已过时.

获取或设置一个值,该值指示是否应将 UTC 时区用于日志记录消息中的时间戳。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于