ILogger ILogger ILogger Interface

Definition

Represents a type used to perform logging.

public interface ILogger
type ILogger = interface
Public Interface ILogger
Derived

Remarks

Aggregates most logging patterns to a single method.

Methods

BeginScope<TState>(TState) BeginScope<TState>(TState) BeginScope<TState>(TState)

Begins a logical operation scope.

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

Checks if the given logLevel is enabled.

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

Writes a log entry.

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, String, Object[]) Log(ILogger, LogLevel, String, Object[]) Log(ILogger, LogLevel, String, Object[])

Formats and writes a log message on 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