LogEntry<TState> 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
保存單一記錄項目的資訊。
generic <typename TState>
public value class LogEntry
public readonly struct LogEntry<TState>
type LogEntry<'State> = struct
Public Structure LogEntry(Of TState)
類型參數
- TState
- 繼承
建構函式
| 名稱 | Description |
|---|---|
| LogEntry<TState>(LogLevel, String, EventId, TState, Exception, Func<TState,Exception,String>) |
初始化 LogEntry 結構體的實例。 |
屬性
| 名稱 | Description |
|---|---|
| Category |
拿到對數類別。 |
| EventId |
取得日誌事件 ID。 |
| Exception |
會觸發日誌例外。 |
| Formatter |
會收到格式化器。 |
| LogLevel |
取得木頭水平。 |
| State |
取得狀態。 |