ILogger<TCategoryName> Interfaz

Definición

Una interfaz genérica para registrar dónde se deriva el nombre de categoría del nombre de tipo de TCategoryName especificado.A generic interface for logging where the category name is derived from the specified TCategoryName type name. Se usa generalmente para habilitar la activación de un elemento ILogger con nombre desde la inserción de dependencias.Generally used to enable activation of a named ILogger from dependency injection.

generic <typename TCategoryName>
public interface class ILogger : Microsoft::Extensions::Logging::ILogger
public interface ILogger<out TCategoryName> : Microsoft.Extensions.Logging.ILogger
type ILogger<'CategoryName> = interface
    interface ILogger
Public Interface ILogger(Of Out TCategoryName)
Implements ILogger

Parámetros de tipo

TCategoryName

El tipo cuyo nombre se usa para el nombre de categoría del registrador.The type who's name is used for the logger category name.

Este parámetro de tipo es covariante, es decir, puede usar el tipo que haya especificado o cualquier tipo más derivado. Si desea obtener más información sobre la covarianza y la contravarianza, consulte Covarianza y contravarianza en genéricos.
Derivado
Implementaciones

Métodos

BeginScope<TState>(TState)

Inicia un ámbito de operación lógica.Begins a logical operation scope.

(Heredado de ILogger)
IsEnabled(LogLevel)

Comprueba si el valor logLevel especificado está habilitado.Checks if the given logLevel is enabled.

(Heredado de ILogger)
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Escribe una entrada del registro.Writes a log entry.

(Heredado de ILogger)

Métodos de extensión

BeginScope(ILogger, String, Object[])

Da formato al mensaje y crea un ámbito.Formats the message and creates a scope.

Log(ILogger, LogLevel, EventId, Exception, String, Object[])

Da formato y escribe un mensaje de registro en el nivel de registro especificado.Formats and writes a log message at the specified log level.

Log(ILogger, LogLevel, EventId, String, Object[])

Da formato y escribe un mensaje de registro en el nivel de registro especificado.Formats and writes a log message at the specified log level.

Log(ILogger, LogLevel, Exception, String, Object[])

Da formato y escribe un mensaje de registro en el nivel de registro especificado.Formats and writes a log message at the specified log level.

Log(ILogger, LogLevel, String, Object[])

Da formato y escribe un mensaje de registro en el nivel de registro especificado.Formats and writes a log message at the specified log level.

LogCritical(ILogger, EventId, Exception, String, Object[])

Da formato y escribe un mensaje de registro crítico.Formats and writes a critical log message.

LogCritical(ILogger, EventId, String, Object[])

Da formato y escribe un mensaje de registro crítico.Formats and writes a critical log message.

LogCritical(ILogger, Exception, String, Object[])

Da formato y escribe un mensaje de registro crítico.Formats and writes a critical log message.

LogCritical(ILogger, String, Object[])

Da formato y escribe un mensaje de registro crítico.Formats and writes a critical log message.

LogDebug(ILogger, EventId, Exception, String, Object[])

Da formato y escribe un mensaje de registro de depuración.Formats and writes a debug log message.

LogDebug(ILogger, EventId, String, Object[])

Da formato y escribe un mensaje de registro de depuración.Formats and writes a debug log message.

LogDebug(ILogger, Exception, String, Object[])

Da formato y escribe un mensaje de registro de depuración.Formats and writes a debug log message.

LogDebug(ILogger, String, Object[])

Da formato y escribe un mensaje de registro de depuración.Formats and writes a debug log message.

LogError(ILogger, EventId, Exception, String, Object[])

Da formato y escribe un mensaje de registro de errores.Formats and writes an error log message.

LogError(ILogger, EventId, String, Object[])

Da formato y escribe un mensaje de registro de errores.Formats and writes an error log message.

LogError(ILogger, Exception, String, Object[])

Da formato y escribe un mensaje de registro de errores.Formats and writes an error log message.

LogError(ILogger, String, Object[])

Da formato y escribe un mensaje de registro de errores.Formats and writes an error log message.

LogInformation(ILogger, EventId, Exception, String, Object[])

Da formato y escribe un mensaje de registro informativo.Formats and writes an informational log message.

LogInformation(ILogger, EventId, String, Object[])

Da formato y escribe un mensaje de registro informativo.Formats and writes an informational log message.

LogInformation(ILogger, Exception, String, Object[])

Da formato y escribe un mensaje de registro informativo.Formats and writes an informational log message.

LogInformation(ILogger, String, Object[])

Da formato y escribe un mensaje de registro informativo.Formats and writes an informational log message.

LogTrace(ILogger, EventId, Exception, String, Object[])

Da formato y escribe un mensaje de registro de seguimiento.Formats and writes a trace log message.

LogTrace(ILogger, EventId, String, Object[])

Da formato y escribe un mensaje de registro de seguimiento.Formats and writes a trace log message.

LogTrace(ILogger, Exception, String, Object[])

Da formato y escribe un mensaje de registro de seguimiento.Formats and writes a trace log message.

LogTrace(ILogger, String, Object[])

Da formato y escribe un mensaje de registro de seguimiento.Formats and writes a trace log message.

LogWarning(ILogger, EventId, Exception, String, Object[])

Da formato y escribe un mensaje de registro de advertencia.Formats and writes a warning log message.

LogWarning(ILogger, EventId, String, Object[])

Da formato y escribe un mensaje de registro de advertencia.Formats and writes a warning log message.

LogWarning(ILogger, Exception, String, Object[])

Da formato y escribe un mensaje de registro de advertencia.Formats and writes a warning log message.

LogWarning(ILogger, String, Object[])

Da formato y escribe un mensaje de registro de advertencia.Formats and writes a warning log message.

Se aplica a