Share via


ILogger Interface

 

A generic interface for logging.

Namespace:   Microsoft.Owin.Logging
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Syntax

public interface ILogger
public interface class ILogger
type ILogger = interface end
Public Interface ILogger

Methods

Name Description
System_CAPS_pubmethod 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

Name Description
System_CAPS_pubmethod IsEnabled(TraceEventType)

Checks if the given TraceEventType is enabled.(Defined by LoggerExtensions.)

System_CAPS_pubmethod WriteCritical(String)

Overloaded. Writes a critical log message.(Defined by LoggerExtensions.)

System_CAPS_pubmethod WriteCritical(String, Exception)

Overloaded. Writes a critical log message.(Defined by LoggerExtensions.)

System_CAPS_pubmethod WriteError(String)

Overloaded. Writes an error log message.(Defined by LoggerExtensions.)

System_CAPS_pubmethod WriteError(String, Exception)

Overloaded. Writes an error log message.(Defined by LoggerExtensions.)

System_CAPS_pubmethod WriteInformation(String)

Writes an informational log message.(Defined by LoggerExtensions.)

System_CAPS_pubmethod WriteVerbose(String)

Writes a verbose log message.(Defined by LoggerExtensions.)

System_CAPS_pubmethod WriteWarning(String, Exception)

Overloaded. Writes a warning log message.(Defined by LoggerExtensions.)

System_CAPS_pubmethod WriteWarning(String, String[])

Overloaded. Writes a warning log message.(Defined by LoggerExtensions.)

See Also

Microsoft.Owin.Logging Namespace

Return to top