Freigeben über


FileLoggingOutput.Log<TState> Methode

Definition

Protokolliert eine Meldung.

public void Log<TState> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, TState state, Exception exception, Func<TState,Exception,string> formatter, string category);
member this.Log : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * 'State * Exception * Func<'State, Exception, string> * 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), category As String)

Typparameter

TState

Der state-Typ.

Parameter

logLevel
LogLevel

die Protokollierungsebene

eventId
EventId

Der Ereignisbezeichner.

state
TState

Das Land/die Region.

exception
Exception

Die Ausnahme.

formatter
Func<TState,Exception,String>

Der Formatierer.

category
String

Die Kategorie.

Gilt für: