LogEntry<TState> 結構

定義

保存單一記錄項目的資訊。

generic <typename TState>
public value class LogEntry
public readonly 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>)

使用指定的記錄層級、類別、事件識別碼、狀態、例外狀況和格式器參數,建立新的 LogEntry<TState>

屬性

Category

取得記錄類別。

EventId

取得記錄事件識別碼。

Exception

取得記錄例外狀況。

Formatter

取得格式器。

LogLevel

取得記錄層級。

State

取得 TState

適用於