Share via


SimpleConsoleFormatterOptions 类

定义

内置默认控制台日志格式化程序的选项。

public ref class SimpleConsoleFormatterOptions : Microsoft::Extensions::Logging::Console::ConsoleFormatterOptions
public class SimpleConsoleFormatterOptions : Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions
type SimpleConsoleFormatterOptions = class
    inherit ConsoleFormatterOptions
Public Class SimpleConsoleFormatterOptions
Inherits ConsoleFormatterOptions
继承
SimpleConsoleFormatterOptions

构造函数

SimpleConsoleFormatterOptions()

初始化 SimpleConsoleFormatterOptions 类的新实例。

属性

ColorBehavior

确定记录消息时何时使用颜色。

IncludeScopes

获取或设置是否应包含范围。

(继承自 ConsoleFormatterOptions)
SingleLine

指示是否将整个消息记录在单行中。

TimestampFormat

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

(继承自 ConsoleFormatterOptions)
UseUtcTimestamp

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

(继承自 ConsoleFormatterOptions)

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

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

(继承自 Object)

适用于