Share via


ILogger Interface

Definition

A generic interface for logging.

public interface ILogger
type ILogger = interface
Public Interface ILogger

Methods

WriteCore(TraceEventType, Int32, Object, Exception, Func<Object,Exception,String>)

Aggregates most logging patterns to a single method. This must be compatible with the Func representation in the OWIN environment.

To check IsEnabled call WriteCore with only TraceEventType and check the return value, no event will be written.

Extension Methods

IsEnabled(ILogger, TraceEventType)

Checks if the given TraceEventType is enabled.

WriteCritical(ILogger, String, Exception)

Writes a critical log message.

WriteCritical(ILogger, String)

Writes a critical log message.

WriteError(ILogger, String, Exception)

Writes an error log message.

WriteError(ILogger, String)

Writes an error log message.

WriteInformation(ILogger, String)

Writes an informational log message.

WriteVerbose(ILogger, String)

Writes a verbose log message.

WriteWarning(ILogger, String, Exception)

Writes a warning log message.

WriteWarning(ILogger, String, String[])

Writes a warning log message.

Applies to