LogEntry<TState> Constructeur

Définition

Crée une LogEntry<TState> en utilisant les paramètres de niveau de journalisation, de catégorie, d’ID d’événement, d’état, d’exception et de formateur spécifiés.

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

Paramètres

logLevel
LogLevel

Le niveau du journal

category
String

Nom de catégorie du journal.

eventId
EventId

ID d’événement du journal.

state
TState

État pour lequel le journal est en cours d’écriture.

exception
Exception

Exception du journal.

formatter
Func<TState,Exception,String>

Formateur.

S’applique à