Compartilhar via


FileLoggingOutput.Log<TState> Método

Definição

Registra uma mensagem em log.

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)

Parâmetros de tipo

TState

O tipo de state.

Parâmetros

logLevel
LogLevel

O nível de log.

eventId
EventId

O identificador de evento.

state
TState

O estado.

exception
Exception

A exceção.

formatter
Func<TState,Exception,String>

O formatador.

category
String

A categoria.

Aplica-se a