Partager via


FileLoggingOutput.Log<TState> Méthode

Définition

Journalise un message.

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)

Paramètres de type

TState

Type d'élément state.

Paramètres

logLevel
LogLevel

Le niveau du journal

eventId
EventId

Identificateur de l'événement.

state
TState

État.

exception
Exception

Exception.

formatter
Func<TState,Exception,String>

Formateur.

category
String

Catégorie.

S’applique à