Share via


ConsoleFormatter 类

定义

允许自定义日志消息格式化。

public ref class ConsoleFormatter abstract
public abstract class ConsoleFormatter
type ConsoleFormatter = class
Public MustInherit Class ConsoleFormatter
继承
ConsoleFormatter

构造函数

ConsoleFormatter(String)

初始化 ConsoleFormatter 的新实例。

属性

Name

获取与控制台日志格式化程序关联的名称。

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

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

(继承自 Object)
Write<TState>(LogEntry<TState>, IExternalScopeProvider, TextWriter)

允许自定义日志消息格式化。

适用于