共用方式為


LegacyOrleansLogger.Log<TState> 方法

定義

記錄訊息。 目前的記錄器支援舊版事件大量處理功能。 如果特定事件出現超過 BulkEventLimit ,訊息大量功能只會記錄 eventId 程式碼外觀計數 BulkEventInterval

public void Log<TState> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, Exception exception, Func<TState,Exception,string> formatter);
abstract member Log : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * 'State * Exception * Func<'State, Exception, string> -> unit
override this.Log : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * 'State * Exception * Func<'State, Exception, string> -> unit
Public Sub Log(Of TState) (logLevel As LogLevel, eventId As EventId, state As TState, exception As Exception, formatter As Func(Of TState, Exception, String))

類型參數

TState

參數

logLevel
LogLevel
eventId
EventId
state
TState
exception
Exception
formatter
Func<TState,Exception,String>

實作

適用於