Condividi tramite


EventDefinition<TParam> Costruttori

Definizione

Overload

EventDefinition<TParam>(EventId, LogLevel, Action<ILogger,TParam,Exception>)

Crea un'istanza di definizione dell'evento.

EventDefinition<TParam>(EventId, LogLevel, String, Action<ILogger,TParam,Exception>)

Crea un'istanza di definizione dell'evento.

EventDefinition<TParam>(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,TParam,Exception>>)

Crea un'istanza di definizione dell'evento.

EventDefinition<TParam>(EventId, LogLevel, Action<ILogger,TParam,Exception>)

Origine:
EventDefinition%60.cs
Origine:
EventDefinition%60.cs

Crea un'istanza di definizione dell'evento.

public EventDefinition (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, Action<Microsoft.Extensions.Logging.ILogger,TParam,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'Param> : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * Action<Microsoft.Extensions.Logging.ILogger, 'Param, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'Param>
Public Sub New (eventId As EventId, level As LogLevel, logAction As Action(Of ILogger, TParam, Exception))

Parametri

eventId
EventId

Oggetto EventId.

level
LogLevel

Oggetto LogLevel in cui verrà registrato l'evento.

logAction
Action<ILogger,TParam,Exception>

Delegato memorizzato nella cache per la registrazione dell'evento.

Si applica a

EventDefinition<TParam>(EventId, LogLevel, String, Action<ILogger,TParam,Exception>)

Origine:
EventDefinition%60.cs
Origine:
EventDefinition%60.cs

Crea un'istanza di definizione dell'evento.

public EventDefinition (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, Action<Microsoft.Extensions.Logging.ILogger,TParam,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'Param> : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Action<Microsoft.Extensions.Logging.ILogger, 'Param, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'Param>
Public Sub New (eventId As EventId, level As LogLevel, eventIdCode As String, logAction As Action(Of ILogger, TParam, Exception))

Parametri

eventId
EventId

Oggetto EventId.

level
LogLevel

Oggetto LogLevel in cui verrà registrato l'evento.

eventIdCode
String

Stringa che rappresenta il codice che deve essere passato a ConfigureWanings.

logAction
Action<ILogger,TParam,Exception>

Delegato memorizzato nella cache per la registrazione dell'evento.

Si applica a

EventDefinition<TParam>(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,TParam,Exception>>)

Origine:
EventDefinition%60.cs
Origine:
EventDefinition%60.cs
Origine:
EventDefinition%60.cs
Origine:
EventDefinition%60.cs
Origine:
EventDefinition%60.cs
Origine:
EventDefinition%60.cs
Origine:
EventDefinition%60.cs

Crea un'istanza di definizione dell'evento.

public EventDefinition (Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions, Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, Func<Microsoft.Extensions.Logging.LogLevel,Action<Microsoft.Extensions.Logging.ILogger,TParam,Exception>> logActionFunc);
public EventDefinition (Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions, Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, Func<Microsoft.Extensions.Logging.LogLevel,Action<Microsoft.Extensions.Logging.ILogger,TParam,Exception?>> logActionFunc);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'Param> : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions * Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Func<Microsoft.Extensions.Logging.LogLevel, Action<Microsoft.Extensions.Logging.ILogger, 'Param, Exception>> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'Param>
Public Sub New (loggingOptions As ILoggingOptions, eventId As EventId, level As LogLevel, eventIdCode As String, logActionFunc As Func(Of LogLevel, Action(Of ILogger, TParam, Exception)))

Parametri

loggingOptions
ILoggingOptions

Opzioni di registrazione.

eventId
EventId

Oggetto EventId.

level
LogLevel

Oggetto LogLevel in cui verrà registrato l'evento.

eventIdCode
String

Stringa che rappresenta il codice che deve essere passato a ConfigureWarnings(Action<WarningsConfigurationBuilder>).

logActionFunc
Func<LogLevel,Action<ILogger,TParam,Exception>>

Funzione per creare un delegato memorizzato nella cache per registrare l'evento.

Si applica a