Compartir a través de


EventDefinition<TParam1,TParam2,TParam3,TParam4> Constructores

Definición

Sobrecargas

EventDefinition<TParam1,TParam2,TParam3,TParam4>(EventId, LogLevel, Action<ILogger,TParam1,TParam2,TParam3,TParam4,Exception>)

Crea una instancia de definición de evento.

EventDefinition<TParam1,TParam2,TParam3,TParam4>(EventId, LogLevel, String, Action<ILogger,TParam1,TParam2,TParam3,TParam4,Exception>)

Crea una instancia de definición de evento.

EventDefinition<TParam1,TParam2,TParam3,TParam4>(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,TParam1, TParam2,TParam3,TParam4,Exception>>)

Crea una instancia de definición de evento.

EventDefinition<TParam1,TParam2,TParam3,TParam4>(EventId, LogLevel, Action<ILogger,TParam1,TParam2,TParam3,TParam4,Exception>)

Crea una instancia de definición de evento.

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

Parámetros

eventId
EventId

EventId.

level
LogLevel

en LogLevel el que se registrará el evento.

logAction
Action<ILogger,TParam1,TParam2,TParam3,TParam4,Exception>

Delegado almacenado en caché para registrar el evento.

Se aplica a

EventDefinition<TParam1,TParam2,TParam3,TParam4>(EventId, LogLevel, String, Action<ILogger,TParam1,TParam2,TParam3,TParam4,Exception>)

Crea una instancia de definición de evento.

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

Parámetros

eventId
EventId

EventId.

level
LogLevel

en LogLevel el que se registrará el evento.

eventIdCode
String

Cadena que representa el código que se debe pasar a ConfigureWanings.

logAction
Action<ILogger,TParam1,TParam2,TParam3,TParam4,Exception>

Delegado almacenado en caché para registrar el evento.

Se aplica a

EventDefinition<TParam1,TParam2,TParam3,TParam4>(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,TParam1, TParam2,TParam3,TParam4,Exception>>)

Crea una instancia de definición de 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,TParam1,TParam2,TParam3,TParam4,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,TParam1,TParam2,TParam3,TParam4,Exception?>> logActionFunc);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3, 'TParam4> : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions * Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Func<Microsoft.Extensions.Logging.LogLevel, Action<Microsoft.Extensions.Logging.ILogger, 'TParam1, 'TParam2, 'TParam3, 'TParam4, Exception>> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3, 'TParam4>
Public Sub New (loggingOptions As ILoggingOptions, eventId As EventId, level As LogLevel, eventIdCode As String, logActionFunc As Func(Of LogLevel, Action(Of ILogger, TParam1, TParam2, TParam3, TParam4, Exception)))

Parámetros

loggingOptions
ILoggingOptions

Opciones de registro.

eventId
EventId

EventId.

level
LogLevel

en LogLevel el que se registrará el evento.

eventIdCode
String

Cadena que representa el código que se debe pasar a ConfigureWarnings(Action<WarningsConfigurationBuilder>).

logActionFunc
Func<LogLevel,Action<ILogger,TParam1,TParam2,TParam3,TParam4,Exception>>

Función para crear un delegado almacenado en caché para registrar el evento.

Se aplica a