Lenguaje

IRelationalCommandDiagnosticsLogger Interfaz

Definición

Con IDiagnosticsLogger<TLoggerCategory> algunas funcionalidades adicionales adecuadas para el registro de alto rendimiento.

public interface IRelationalCommandDiagnosticsLogger : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command>
type IRelationalCommandDiagnosticsLogger = interface
    interface IDiagnosticsLogger<DbLoggerCategory.Database.Command>
    interface IDiagnosticsLogger
Public Interface IRelationalCommandDiagnosticsLogger
Implements IDiagnosticsLogger(Of DbLoggerCategory.Database.Command)
Implementaciones

Comentarios

La duración del servicio es Scoped. Esto significa que cada DbContext instancia usará su propia instancia de este servicio. La implementación puede depender de otros servicios registrados con cualquier duración. La implementación no necesita ser segura para subprocesos.

Consulte Implementación de proveedores y extensiones de base de datos para obtener más información y ejemplos.

Propiedades

Nombre Description
DbContextLogger

El IDbContextLogger.

(Heredado de IDiagnosticsLogger)
Definitions

Almacenamiento en caché para las definiciones de registro.

(Heredado de IDiagnosticsLogger)
DiagnosticSource

El DiagnosticSource.

(Heredado de IDiagnosticsLogger<TLoggerCategory>)
Interceptors

Contiene interceptores registrados, si los hay.

(Heredado de IDiagnosticsLogger<TLoggerCategory>)
Logger

Subyacente ILogger.

(Heredado de IDiagnosticsLogger<TLoggerCategory>)
Options

Opciones de registro de Entity Framework.

(Heredado de IDiagnosticsLogger<TLoggerCategory>)

Métodos

Nombre Description
CommandCanceled(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandCanceled evento.

CommandCanceled(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandCanceled evento.

CommandCanceledAsync(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandCanceled evento.

CommandCanceledAsync(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandCanceled evento.

CommandCreated(IRelationalConnection, DbCommand, DbCommandMethod, DbContext, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandCreated evento.

CommandCreating(IRelationalConnection, DbCommandMethod, DbContext, Guid, Guid, DateTimeOffset, CommandSource)

Registra el CommandCreating evento.

CommandError(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandError evento.

CommandError(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandError evento.

CommandErrorAsync(IRelationalConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandError evento.

CommandErrorAsync(IRelationalConnection, DbCommand, String, DbContext, DbCommandMethod, Guid, Guid, Exception, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandError evento.

CommandInitialized(IRelationalConnection, DbCommand, DbCommandMethod, DbContext, Guid, Guid, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandInitialized evento.

CommandNonQueryExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Int32, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandExecuted evento.

CommandNonQueryExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, Int32, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandExecuted evento.

CommandNonQueryExecutedAsync(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Int32, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandExecuted evento.

CommandNonQueryExecutedAsync(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, Int32, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandExecuted evento.

CommandNonQueryExecuting(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DateTimeOffset, CommandSource)

Registra el CommandExecuting evento.

CommandNonQueryExecuting(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DateTimeOffset, CommandSource)

Registra el CommandExecuting evento.

CommandNonQueryExecutingAsync(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DateTimeOffset, CommandSource, CancellationToken)

Registra el CommandExecuting evento.

CommandNonQueryExecutingAsync(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DateTimeOffset, CommandSource, CancellationToken)

Registra el CommandExecuting evento.

CommandReaderExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandExecuted evento.

CommandReaderExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandExecuted evento.

CommandReaderExecutedAsync(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandExecuted evento.

CommandReaderExecutedAsync(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandExecuted evento.

CommandReaderExecuting(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DateTimeOffset, CommandSource)

Registra el CommandExecuting evento.

CommandReaderExecuting(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DateTimeOffset, CommandSource)

Registra el CommandExecuting evento.

CommandReaderExecutingAsync(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DateTimeOffset, CommandSource, CancellationToken)

Registra el CommandExecuting evento.

CommandReaderExecutingAsync(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DateTimeOffset, CommandSource, CancellationToken)

Registra el CommandExecuting evento.

CommandScalarExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandExecuted evento.

CommandScalarExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource)

Registra el CommandExecuted evento.

CommandScalarExecutedAsync(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandExecuted evento.

CommandScalarExecutedAsync(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource, CancellationToken)

Registra el CommandExecuted evento.

CommandScalarExecuting(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DateTimeOffset, CommandSource)

Registra el CommandExecuting evento.

CommandScalarExecuting(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DateTimeOffset, CommandSource)

Registra el CommandExecuting evento.

CommandScalarExecutingAsync(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DateTimeOffset, CommandSource, CancellationToken)

Registra el CommandExecuting evento.

CommandScalarExecutingAsync(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DateTimeOffset, CommandSource, CancellationToken)

Registra el CommandExecuting evento.

DataReaderClosing(IRelationalConnection, DbCommand, DbDataReader, Guid, Int32, Int32, DateTimeOffset)

Registra el DataReaderClosing evento.

DataReaderClosingAsync(IRelationalConnection, DbCommand, DbDataReader, Guid, Int32, Int32, DateTimeOffset)

Registra el DataReaderClosing evento.

DataReaderDisposing(IRelationalConnection, DbCommand, DbDataReader, Guid, Int32, Int32, DateTimeOffset, TimeSpan)

Registra el DataReaderDisposing evento.

DispatchEventData(EventDefinitionBase, EventData, Boolean, Boolean)

Envía el objeto especificado EventData a , DiagnosticSourcesi está habilitado y , IDbContextLoggersi está habilitado.

(Heredado de IDiagnosticsLogger)
GetLogBehavior(EventId, LogLevel)

Comprueba si el objeto especificado logLevel está habilitado o el evento determinado y, si es así, si el evento se debe registrar o iniciar.

(Heredado de IDiagnosticsLogger<TLoggerCategory>)
NeedsEventData(EventDefinitionBase, Boolean, Boolean)

Determina si se necesita una EventData instancia en función de si hay o no un DiagnosticSourceIDbContextLogger objeto habilitado para el evento determinado.

(Heredado de IDiagnosticsLogger)
NeedsEventData<TInterceptor>(EventDefinitionBase, TInterceptor, Boolean, Boolean)

Determina si se necesita una EventData instancia en función de si hay o no un DiagnosticSource, o IDbContextLoggerun IInterceptor objeto habilitado para el evento determinado.

(Heredado de IDiagnosticsLogger)
ShouldLog(EventDefinitionBase)

Comprueba si el mensaje debe enviarse a .ILogger

(Heredado de IDiagnosticsLogger)
ShouldLogCommandCreate(DateTimeOffset)

Indica si CommandCreating se debe registrar o CommandCreated no.

ShouldLogCommandExecute(DateTimeOffset)

Indica si CommandExecuting se debe registrar o CommandExecuted no.

ShouldLogDataReaderClose(DateTimeOffset)

Si DataReaderClosing es necesario registrarlo.

ShouldLogDataReaderDispose(DateTimeOffset)

Si DataReaderDisposing es necesario registrarlo.

ShouldLogSensitiveData()

Obtiene un valor que indica si se debe escribir información confidencial en el registrador subyacente. Esto también tiene el efecto secundario de escribir una advertencia en el registro la primera vez que se registra la información confidencial.

(Heredado de IDiagnosticsLogger<TLoggerCategory>)

Métodos de extensión

Nombre Description
SensitiveDataLoggingEnabledWarning<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>)

Registra el SensitiveDataLoggingEnabledWarning evento.

Se aplica a