ILogger Interface

Definition

Represents a type used to perform logging.

public interface ILogger
Derived
Microsoft.AspNetCore.Diagnostics.Elm.ElmLogger
Microsoft.AspNetCore.Server.Kestrel.Core.Internal.KestrelTrace
Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.IKestrelTrace
Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelTrace
Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure.IKestrelTrace
More…

Remarks

Aggregates most logging patterns to a single method.

Methods

BeginScope<TState>(TState)

Begins a logical operation scope.

IsEnabled(LogLevel)

Checks if the given logLevel is enabled.

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

Writes a log entry.

Extension Methods

GeneratedCodeToAssemblyCompilationEnd(ILogger, String, Int64)
GeneratedCodeToAssemblyCompilationStart(ILogger, String)
PrecompiledViewFound(ILogger, String)
RazorFileToCodeCompilationEnd(ILogger, String, Int64)
RazorFileToCodeCompilationStart(ILogger, String)
TagHelperComponentInitialized(ILogger, String)
TagHelperComponentProcessed(ILogger, String)
ViewLookupCacheHit(ILogger, String, String)
ViewLookupCacheMiss(ILogger, String, String)
BeginScope(ILogger, String, Object[])
LogCritical(ILogger, EventId, Exception, String, Object[])
LogCritical(ILogger, EventId, String, Object[])
LogCritical(ILogger, Exception, String, Object[])
LogCritical(ILogger, String, Object[])
LogDebug(ILogger, EventId, Exception, String, Object[])
LogDebug(ILogger, EventId, String, Object[])
LogDebug(ILogger, Exception, String, Object[])
LogDebug(ILogger, String, Object[])
LogError(ILogger, EventId, Exception, String, Object[])
LogError(ILogger, EventId, String, Object[])
LogError(ILogger, Exception, String, Object[])
LogError(ILogger, String, Object[])
LogInformation(ILogger, EventId, Exception, String, Object[])
LogInformation(ILogger, EventId, String, Object[])
LogInformation(ILogger, Exception, String, Object[])
LogInformation(ILogger, String, Object[])
LogTrace(ILogger, EventId, Exception, String, Object[])
LogTrace(ILogger, EventId, String, Object[])
LogTrace(ILogger, Exception, String, Object[])
LogTrace(ILogger, String, Object[])
LogWarning(ILogger, EventId, Exception, String, Object[])
LogWarning(ILogger, EventId, String, Object[])
LogWarning(ILogger, Exception, String, Object[])
LogWarning(ILogger, String, Object[])