LoggingEventSource.Keywords 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义可以在事件中设置数据格式的不同方式。
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)。 |