Share via


NullLogger<T>.Log<TState> Yöntem

Tanım

Günlük girdisi yazar.

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))

Tür Parametreleri

TState

Yazılacak nesnenin türü.

Parametreler

logLevel
LogLevel

Giriş bu düzeyde yazılacaktır.

eventId
EventId

Olayın kimliği.

state
TState

Yazılacak giriş. Bir nesne de olabilir.

exception
Exception

Bu girişle ilgili özel durum.

formatter
Func<TState,Exception,String>

ve exceptioniçin bir String ileti state oluşturma işlevi.

Uygulamalar

Açıklamalar

Bu yöntem parametreleri yoksayar ve hiçbir şey yapmaz.

Şunlara uygulanır