LogEntry<TState> 结构

定义

保存单个日志条目的信息。Holds the information for a single log entry.

generic <typename TState>
public value class LogEntry
public struct LogEntry<TState>
type LogEntry<'State> = struct
Public Structure LogEntry(Of TState)

类型参数

TState
继承
LogEntry<TState>

构造函数

LogEntry<TState>(LogLevel, String, EventId, TState, Exception, Func<TState,Exception,String>)

使用指定的日志级别、类别、事件 ID、状态、异常和格式化程序参数创建新 LogEntry<TState>Creates a new LogEntry<TState> using the specified log level, category, event Id, state, exception and formatter parameters.

属性

Category

获取日志类别。Gets the log category.

EventId

获取日志事件 ID。Gets the log event Id.

Exception

获取日志异常。Gets the log exception.

Formatter

获取格式化程序。Gets the formatter.

LogLevel

获取日志级别。Gets the log level.

State

获取 TStateGets the TState.

适用于