ILogger Interface

Provides interface of the logger.

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

Syntax

'Declaration
Public Interface ILogger
'Usage
Dim instance As ILogger
public interface ILogger
public interface class ILogger
type ILogger =  interface end
public interface ILogger

The ILogger type exposes the following members.

Methods

  Name Description
Public method WriteCore 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.

Top

Extension Methods

  Name Description
Public Extension Method IsEnabled Determines whether the logger is enabled. (Defined by LoggerExtensions.)
Public Extension Method WriteCritical(String) Overloaded. Writes a critical message for the specified logger. (Defined by LoggerExtensions.)
Public Extension Method WriteCritical(String, Exception) Overloaded. Writes a critical message for the specified logger. (Defined by LoggerExtensions.)
Public Extension Method WriteError(String) Overloaded. Writes an error message for the specified logger. (Defined by LoggerExtensions.)
Public Extension Method WriteError(String, Exception) Overloaded. Writes an error message for the specified logger. (Defined by LoggerExtensions.)
Public Extension Method WriteInformation Writes information message for the specified logger. (Defined by LoggerExtensions.)
Public Extension Method WriteVerbose Writes a verbose message for the specified logger. (Defined by LoggerExtensions.)
Public Extension Method WriteWarning(String, array<String[]) Overloaded. Writes a warning message for the specified logger. (Defined by LoggerExtensions.)
Public Extension Method WriteWarning(String, Exception) Overloaded. Writes a warning message for the specified logger. (Defined by LoggerExtensions.)

Top

See Also

Reference

Microsoft.Owin.Logging Namespace