Logger<T>.ILogger.Log<TState> Metoda

Definicja

Zapisuje wpis dziennika.

generic <typename TState>
 virtual void Microsoft.Extensions.Logging.ILogger.Log(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, TState state, Exception ^ exception, Func<TState, Exception ^, System::String ^> ^ formatter) = Microsoft::Extensions::Logging::ILogger::Log;
void ILogger.Log<TState> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, Exception exception, Func<TState,Exception,string> formatter);
abstract member Microsoft.Extensions.Logging.ILogger.Log : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * 'State * Exception * Func<'State, Exception, string> -> unit
override this.Microsoft.Extensions.Logging.ILogger.Log : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * 'State * Exception * Func<'State, Exception, string> -> unit
Sub Log(Of TState) (logLevel As LogLevel, eventId As EventId, state As TState, exception As Exception, formatter As Func(Of TState, Exception, String)) Implements ILogger.Log

Parametry typu

TState

Typ obiektu do zapisania.

Parametry

logLevel
LogLevel

Wpis zostanie napisany na tym poziomie.

eventId
EventId

Identyfikator zdarzenia.

state
TState

Wpis do zapisania. Może być również obiektem.

exception
Exception

Wyjątek związany z tym wpisem.

formatter
Func<TState,Exception,String>

Funkcja umożliwiająca String utworzenie komunikatu o elementach state i exception.

Implementuje

Dotyczy