ILogger<TCategoryName> ILogger<TCategoryName> ILogger<TCategoryName> Interface

Definition

A generic interface for logging where the category name is derived from the specified TCategoryName type name. Generally used to enable activation of a named ILogger from dependency injection.

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

Type Parameters

TCategoryName

The type who's name is used for the logger category name.

Derived
Implements

Methods

BeginScope(TState) BeginScope(TState) BeginScope(TState)

Begins a logical operation scope.

(Inherited from ILogger)

IsEnabled(LogLevel) IsEnabled(LogLevel) IsEnabled(LogLevel)

Checks if the given logLevel is enabled.

(Inherited from ILogger)

Log(LogLevel, EventId, TState, Exception, Func) Log(LogLevel, EventId, TState, Exception, Func) Log(LogLevel, EventId, TState, Exception, Func)

Writes a log entry.

(Inherited from ILogger)

Extension Methods

NotMostEffectiveFilter(ILogger, Type) NotMostEffectiveFilter(ILogger, Type) NotMostEffectiveFilter(ILogger, Type)
FailedToCreateDataContractSerializer(ILogger, String, Exception) FailedToCreateDataContractSerializer(ILogger, String, Exception) FailedToCreateDataContractSerializer(ILogger, String, Exception)
FailedToCreateXmlSerializer(ILogger, String, Exception) FailedToCreateXmlSerializer(ILogger, String, Exception) FailedToCreateXmlSerializer(ILogger, String, Exception)
GeneratedCodeToAssemblyCompilationEnd(ILogger, String, Int64) GeneratedCodeToAssemblyCompilationEnd(ILogger, String, Int64) GeneratedCodeToAssemblyCompilationEnd(ILogger, String, Int64)
GeneratedCodeToAssemblyCompilationStart(ILogger, String) GeneratedCodeToAssemblyCompilationStart(ILogger, String) GeneratedCodeToAssemblyCompilationStart(ILogger, String)
PrecompiledViewFound(ILogger, String) PrecompiledViewFound(ILogger, String) PrecompiledViewFound(ILogger, String)
RazorFileToCodeCompilationEnd(ILogger, String, Int64) RazorFileToCodeCompilationEnd(ILogger, String, Int64) RazorFileToCodeCompilationEnd(ILogger, String, Int64)
RazorFileToCodeCompilationStart(ILogger, String) RazorFileToCodeCompilationStart(ILogger, String) RazorFileToCodeCompilationStart(ILogger, String)
TagHelperComponentInitialized(ILogger, String) TagHelperComponentInitialized(ILogger, String) TagHelperComponentInitialized(ILogger, String)
TagHelperComponentProcessed(ILogger, String) TagHelperComponentProcessed(ILogger, String) TagHelperComponentProcessed(ILogger, String)
ViewCompilerCouldNotFindFileAtPath(ILogger, String) ViewCompilerCouldNotFindFileAtPath(ILogger, String) ViewCompilerCouldNotFindFileAtPath(ILogger, String)
ViewCompilerEndCodeGeneration(ILogger, String, Int64) ViewCompilerEndCodeGeneration(ILogger, String, Int64) ViewCompilerEndCodeGeneration(ILogger, String, Int64)
ViewCompilerFoundFileToCompile(ILogger, String) ViewCompilerFoundFileToCompile(ILogger, String) ViewCompilerFoundFileToCompile(ILogger, String)
ViewCompilerInvalidingCompiledFile(ILogger, String) ViewCompilerInvalidingCompiledFile(ILogger, String) ViewCompilerInvalidingCompiledFile(ILogger, String)
ViewCompilerLocatedCompiledView(ILogger, String) ViewCompilerLocatedCompiledView(ILogger, String) ViewCompilerLocatedCompiledView(ILogger, String)
ViewCompilerLocatedCompiledViewForPath(ILogger, String) ViewCompilerLocatedCompiledViewForPath(ILogger, String) ViewCompilerLocatedCompiledViewForPath(ILogger, String)
ViewCompilerNoCompiledViewsFound(ILogger) ViewCompilerNoCompiledViewsFound(ILogger) ViewCompilerNoCompiledViewsFound(ILogger)
ViewCompilerStartCodeGeneration(ILogger, String) ViewCompilerStartCodeGeneration(ILogger, String) ViewCompilerStartCodeGeneration(ILogger, String)
ViewLookupCacheHit(ILogger, String, String) ViewLookupCacheHit(ILogger, String, String) ViewLookupCacheHit(ILogger, String, String)
ViewLookupCacheMiss(ILogger, String, String) ViewLookupCacheMiss(ILogger, String, String) ViewLookupCacheMiss(ILogger, String, String)
BeginScope(ILogger, String, Object[]) BeginScope(ILogger, String, Object[]) BeginScope(ILogger, String, Object[])

Formats the message and creates a scope.

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

Formats and writes a log message at the specified log level.

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

Formats and writes a log message at the specified log level.

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

Formats and writes a log message at the specified log level.

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

Formats and writes a log message at the specified log level.

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

Formats and writes a critical log message.

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

Formats and writes a critical log message.

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

Formats and writes a critical log message.

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

Formats and writes a critical log message.

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

Formats and writes a debug log message.

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

Formats and writes a debug log message.

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

Formats and writes a debug log message.

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

Formats and writes a debug log message.

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

Formats and writes an error log message.

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

Formats and writes an error log message.

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

Formats and writes an error log message.

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

Formats and writes an error log message.

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

Formats and writes an informational log message.

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

Formats and writes an informational log message.

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

Formats and writes an informational log message.

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

Formats and writes an informational log message.

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

Formats and writes a trace log message.

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

Formats and writes a trace log message.

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

Formats and writes a trace log message.

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

Formats and writes a trace log message.

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

Formats and writes a warning log message.

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

Formats and writes a warning log message.

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

Formats and writes a warning log message.

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

Formats and writes a warning log message.

Applies to