Condividi tramite


EventDefinition Costruttori

Definizione

Overload

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

Crea un'istanza di definizione dell'evento.

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

Crea un'istanza di definizione dell'evento.

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

Crea un'istanza di definizione dell'evento.

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

Origine:
EventDefinition.cs
Origine:
EventDefinition.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,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * Action<Microsoft.Extensions.Logging.ILogger, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition
Public Sub New (eventId As EventId, level As LogLevel, logAction As Action(Of ILogger, Exception))

Parametri

eventId
EventId

Oggetto EventId.

level
LogLevel

Oggetto LogLevel in cui verrà registrato l'evento.

logAction
Action<ILogger,Exception>

Delegato memorizzato nella cache per la registrazione dell'evento.

Si applica a

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

Origine:
EventDefinition.cs
Origine:
EventDefinition.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,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Action<Microsoft.Extensions.Logging.ILogger, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition
Public Sub New (eventId As EventId, level As LogLevel, eventIdCode As String, logAction As Action(Of ILogger, Exception))

Parametri

eventId
EventId

Oggetto EventId.

level
LogLevel

Oggetto LogLevel in cui verrà registrato l'evento.

eventIdCode
String

Stringa che rappresenta il codice da passare a ConfigureWanings.

logAction
Action<ILogger,Exception>

Delegato memorizzato nella cache per la registrazione dell'evento.

Si applica a

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

Origine:
EventDefinition.cs
Origine:
EventDefinition.cs
Origine:
EventDefinition.cs
Origine:
EventDefinition.cs
Origine:
EventDefinition.cs
Origine:
EventDefinition.cs
Origine:
EventDefinition.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,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,Exception?>> logActionFunc);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions * Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Func<Microsoft.Extensions.Logging.LogLevel, Action<Microsoft.Extensions.Logging.ILogger, Exception>> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition
Public Sub New (loggingOptions As ILoggingOptions, eventId As EventId, level As LogLevel, eventIdCode As String, logActionFunc As Func(Of LogLevel, Action(Of ILogger, 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 da passare a ConfigureWarnings(Action<WarningsConfigurationBuilder>).

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

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

Si applica a