LogEntry

LogEntry()

初始化一个新的实例LogEntry类.

public LogEntry()

也可以看看


LogEntry(string)

初始化一个新的实例LogEntry类.

public LogEntry(string message)
范围类型描述
messageString消息。

也可以看看


LogEntry(string, DateTime)

初始化一个新的实例LogEntry类.

public LogEntry(string message, DateTime time)
范围类型描述
messageString消息。
timeDateTime时间。

也可以看看


LogEntry(string, Exception)

初始化一个新的实例LogEntry类.

public LogEntry(string message, Exception innerException)
范围类型描述
messageString要记录的消息正文。来自消息对象的 ToString() 方法的值。
innerExceptionException要记录的内部异常。

也可以看看


LogEntry(string, LogLevel)

初始化一个新的实例LogEntry类.

public LogEntry(string message, LogLevel severity)
范围类型描述
messageString要记录的消息正文。来自消息对象的 ToString() 方法的值。
severityLogLevel日志条目严重性作为Severity枚举。 (未指定、信息、警告或错误)。

也可以看看


LogEntry(string, Exception, LogLevel)

初始化一个新的实例LogEntry类.

public LogEntry(string message, Exception innerException, LogLevel severity)
范围类型描述
messageString要记录的消息正文。来自消息对象的 ToString() 方法的值。
innerExceptionException要记录的内部异常。
severityLogLevel日志条目严重性作为Severity枚举。 (未指定、信息、警告或错误)。

也可以看看


LogEntry(string, IDictionary<string, string>)

创建一个新的实例LogEntry带有全套构造函数参数

public LogEntry(string message, IDictionary<string, string> properties)
范围类型描述
messageString要记录的消息正文。来自消息对象的 ToString() 方法的值。
propertiesIDictionary`2要记录的键/值对字典。

也可以看看


LogEntry(byte[])

创建一个新的实例LogEntry带有全套构造函数参数

public LogEntry(byte[] binaryDataMessage)
范围类型描述
binaryDataMessageByte[]要记录的二进制消息正文。

也可以看看


LogEntry(byte[], Encoding)

创建一个新的实例LogEntry带有全套构造函数参数

public LogEntry(byte[] binaryDataMessage, Encoding messageEncoding)
范围类型描述
binaryDataMessageByte[]要记录的二进制消息正文。
messageEncodingEncoding二进制消息的编码

也可以看看


LogEntry(byte[], IDictionary<string, string>)

创建一个新的实例LogEntry带有全套构造函数参数

public LogEntry(byte[] binaryDataMessage, IDictionary<string, string> properties)
范围类型描述
binaryDataMessageByte[]要记录的二进制消息正文。
propertiesIDictionary`2要记录的键/值对字典。

也可以看看


LogEntry(byte[], Encoding, IDictionary<string, string>)

创建一个新的实例LogEntry带有全套构造函数参数

public LogEntry(byte[] binaryDataMessage, Encoding messageEncoding, 
    IDictionary<string, string> properties)
范围类型描述
binaryDataMessageByte[]要记录的二进制消息正文。
messageEncodingEncoding二进制消息的编码
propertiesIDictionary`2要记录的键/值对字典。

也可以看看


LogEntry(string, LogLevel, string, int, string, IDictionary<string, string>)

创建一个新的实例LogEntry带有全套构造函数参数

public LogEntry(string message, LogLevel severity, string category, int eventId, string title, 
    IDictionary<string, string> properties)
范围类型描述
messageString要记录的消息正文。来自消息对象的 ToString() 方法的值。
severityLogLevel日志条目严重性作为Severity枚举。 (未指定、信息、警告或错误)。
categoryString用于将日志条目路由到一个或多个接收器的类别名称。
eventIdInt32事件编号或标识符。
titleString日志条目消息的附加说明。
propertiesIDictionary`2要记录的键/值对字典。

也可以看看


LogEntry(string, Exception, LogLevel, string, int, string, IDictionary<string, string>)

创建一个新的实例LogEntry带有全套构造函数参数

public LogEntry(string message, Exception innerException, LogLevel severity, string category, 
    int eventId, string title, IDictionary<string, string> properties)
范围类型描述
messageString要记录的消息正文。来自消息对象的 ToString() 方法的值。
innerExceptionException要记录的内部异常。
severityLogLevel日志条目严重性作为Severity枚举。 (未指定、信息、警告或错误)。
categoryString用于将日志条目路由到一个或多个接收器的类别名称。
eventIdInt32事件编号或标识符。
titleString日志条目消息的附加说明。
propertiesIDictionary`2要记录的键/值对字典。

也可以看看