EventDefinition<TParam> Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
EventDefinition<TParam>(EventId, LogLevel, Action<ILogger,TParam,Exception>) |
Crea una instancia de definición de evento. |
EventDefinition<TParam>(EventId, LogLevel, String, Action<ILogger,TParam,Exception>) |
Crea una instancia de definición de evento. |
EventDefinition<TParam>(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,TParam,Exception>>) |
Crea una instancia de definición de evento. |
EventDefinition<TParam>(EventId, LogLevel, Action<ILogger,TParam,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,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))
Parámetros
Se aplica a
EventDefinition<TParam>(EventId, LogLevel, String, Action<ILogger,TParam,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,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))
Parámetros
- eventIdCode
- String
Cadena que representa el código que se debe pasar a ConfigureWanings.
Se aplica a
EventDefinition<TParam>(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,TParam,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,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)))
Parámetros
- loggingOptions
- ILoggingOptions
Opciones de registro.
- eventIdCode
- String
Cadena que representa el código que se debe pasar a ConfigureWarnings(Action<WarningsConfigurationBuilder>).
Función para crear un delegado almacenado en caché para registrar el evento.