ILogger<TCategoryName> Rozhraní

Definice

Obecné rozhraní pro protokolování, kde je název kategorie odvozen ze zadaného TCategoryName názvu typu.A generic interface for logging where the category name is derived from the specified TCategoryName type name. Obecně slouží k povolení aktivace pojmenovaného ILogger vkládání závislostí.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

Parametry typu

TCategoryName

Typ, který je určen pro název kategorie protokolovacího nástroje.The type who's name is used for the logger category name.

Tento parametr typu je kovariantní. To znamená, že můžete použít buď zadaný typ, nebo libovolný typ, který je více odvozený. Další informace o kovarianci a kontravarianci najdete v tématu popisujícím kovarianci a kontravarianci u parametrického polymorfismu.
Odvozené
Implementuje

Metody

BeginScope<TState>(TState)

Zahájí obor logické operace.Begins a logical operation scope.

(Zděděno od ILogger)
IsEnabled(LogLevel)

Kontroluje, zda je daný modul logLevel povolen.Checks if the given logLevel is enabled.

(Zděděno od ILogger)
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Zapíše položku protokolu.Writes a log entry.

(Zděděno od ILogger)

Metody rozšíření

BeginScope(ILogger, String, Object[])

Zformátuje zprávu a vytvoří obor.Formats the message and creates a scope.

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

Formátuje a zapisuje zprávu protokolu na zadané úrovni protokolu.Formats and writes a log message at the specified log level.

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

Formátuje a zapisuje zprávu protokolu na zadané úrovni protokolu.Formats and writes a log message at the specified log level.

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

Formátuje a zapisuje zprávu protokolu na zadané úrovni protokolu.Formats and writes a log message at the specified log level.

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

Formátuje a zapisuje zprávu protokolu na zadané úrovni protokolu.Formats and writes a log message at the specified log level.

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

Formátuje a zapisuje kritickou zprávu protokolu.Formats and writes a critical log message.

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

Formátuje a zapisuje kritickou zprávu protokolu.Formats and writes a critical log message.

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

Formátuje a zapisuje kritickou zprávu protokolu.Formats and writes a critical log message.

LogCritical(ILogger, String, Object[])

Formátuje a zapisuje kritickou zprávu protokolu.Formats and writes a critical log message.

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

Formátuje a zapisuje zprávu protokolu ladění.Formats and writes a debug log message.

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

Formátuje a zapisuje zprávu protokolu ladění.Formats and writes a debug log message.

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

Formátuje a zapisuje zprávu protokolu ladění.Formats and writes a debug log message.

LogDebug(ILogger, String, Object[])

Formátuje a zapisuje zprávu protokolu ladění.Formats and writes a debug log message.

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

Formátuje a zapisuje zprávu protokolu chyb.Formats and writes an error log message.

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

Formátuje a zapisuje zprávu protokolu chyb.Formats and writes an error log message.

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

Formátuje a zapisuje zprávu protokolu chyb.Formats and writes an error log message.

LogError(ILogger, String, Object[])

Formátuje a zapisuje zprávu protokolu chyb.Formats and writes an error log message.

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

Formátuje a zapisuje informační zprávu protokolu.Formats and writes an informational log message.

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

Formátuje a zapisuje informační zprávu protokolu.Formats and writes an informational log message.

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

Formátuje a zapisuje informační zprávu protokolu.Formats and writes an informational log message.

LogInformation(ILogger, String, Object[])

Formátuje a zapisuje informační zprávu protokolu.Formats and writes an informational log message.

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

Formátuje a zapisuje zprávu protokolu trasování.Formats and writes a trace log message.

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

Formátuje a zapisuje zprávu protokolu trasování.Formats and writes a trace log message.

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

Formátuje a zapisuje zprávu protokolu trasování.Formats and writes a trace log message.

LogTrace(ILogger, String, Object[])

Formátuje a zapisuje zprávu protokolu trasování.Formats and writes a trace log message.

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

Formátuje a zapisuje zprávu protokolu upozornění.Formats and writes a warning log message.

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

Formátuje a zapisuje zprávu protokolu upozornění.Formats and writes a warning log message.

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

Formátuje a zapisuje zprávu protokolu upozornění.Formats and writes a warning log message.

LogWarning(ILogger, String, Object[])

Formátuje a zapisuje zprávu protokolu upozornění.Formats and writes a warning log message.

Platí pro