BatchingLogger.Log Метод

Определение

Перегрузки

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Делает запись журнала.

Log<TState>(DateTimeOffset, LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Делает запись журнала.

public:
generic <typename TState>
 virtual void Log(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, TState state, Exception ^ exception, Func<TState, Exception ^, System::String ^> ^ formatter);
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>

Функция для создания String с параметрами state и exception.

Реализации

Применяется к

Log<TState>(DateTimeOffset, LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

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

Параметры типа

TState

Параметры

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

Применяется к