NullLogger<T>.Log<TState> Methode

Definitie

Hiermee schrijft u een logboekvermelding.

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

Type parameters

TState

Het type object dat moet worden geschreven.

Parameters

logLevel
LogLevel

De vermelding wordt op dit niveau geschreven.

eventId
EventId

Id van de gebeurtenis.

state
TState

De vermelding die moet worden geschreven. Kan ook een object zijn.

exception
Exception

De uitzondering met betrekking tot deze vermelding.

formatter
Func<TState,Exception,String>

Functie voor het maken van een String bericht van de state en exception.

Implementeringen

Opmerkingen

Deze methode negeert de parameters en doet niets.

Van toepassing op