LogEntry<TState> Constructor

Definición

Crea un objeto LogEntry<TState> mediante el nivel de registro, la categoría, el identificador del evento, el estado, la excepción y los parámetros de formateador especificados.

public:
 LogEntry(Microsoft::Extensions::Logging::LogLevel logLevel, System::String ^ category, Microsoft::Extensions::Logging::EventId eventId, TState state, Exception ^ exception, Func<TState, Exception ^, System::String ^> ^ formatter);
public LogEntry (Microsoft.Extensions.Logging.LogLevel logLevel, string category, Microsoft.Extensions.Logging.EventId eventId, TState state, Exception exception, Func<TState,Exception,string> formatter);
public LogEntry (Microsoft.Extensions.Logging.LogLevel logLevel, string category, Microsoft.Extensions.Logging.EventId eventId, TState state, Exception? exception, Func<TState,Exception?,string> formatter);
new Microsoft.Extensions.Logging.Abstractions.LogEntry<'State> : Microsoft.Extensions.Logging.LogLevel * string * Microsoft.Extensions.Logging.EventId * 'State * Exception * Func<'State, Exception, string> -> Microsoft.Extensions.Logging.Abstractions.LogEntry<'State>
Public Sub New (logLevel As LogLevel, category As String, eventId As EventId, state As TState, exception As Exception, formatter As Func(Of TState, Exception, String))

Parámetros

logLevel
LogLevel

El nivel de registro.

category
String

Nombre de la categoría para el registro.

eventId
EventId

Identificador del evento del registro.

state
TState

Estado para el que se escribe el registro.

exception
Exception

Excepción del registro.

formatter
Func<TState,Exception,String>

Formateador.

Se aplica a