語言

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>

建構函式

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

初始化 LogEntry 結構體的實例。

屬性

名稱 Description
Category

拿到對數類別。

EventId

取得日誌事件 ID。

Exception

會觸發日誌例外。

Formatter

會收到格式化器。

LogLevel

取得木頭水平。

State

取得狀態。

適用於