LoggingEventSource.Keywords 类

定义

定义可以在事件中设置数据格式的不同方式。

public: ref class LoggingEventSource::Keywords abstract sealed
public static class LoggingEventSource.Keywords
type LoggingEventSource.Keywords = class
Public Class LoggingEventSource.Keywords
继承
LoggingEventSource.Keywords

字段

名称 说明
FormattedMessage

调用 ILogger.Log() 时,打开“FormatMessage”事件。 提供格式化字符串版本的信息。

JsonMessage

调用 ILogger.Log() 时,打开“MessageJson”事件。 提供参数的 JSON 表示形式。

Message

调用 ILogger.Log() 时打开“Message”事件。 以编程方式(未格式化)提供信息。

Meta

有关 LoggingEventSource 本身的事件(也就是说,它们不是来自 ILogger)。

适用于