Share via


LoggerExtensions Class

 

ILogger extension methods for common scenarios.

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

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Logging.LoggerExtensions

Syntax

public static class LoggerExtensions
[ExtensionAttribute]
public ref class LoggerExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type LoggerExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class LoggerExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static IsEnabled(ILogger, TraceEventType)

Checks if the given TraceEventType is enabled.

System_CAPS_pubmethodSystem_CAPS_static WriteCritical(ILogger, String)

Writes a critical log message.

System_CAPS_pubmethodSystem_CAPS_static WriteCritical(ILogger, String, Exception)

Writes a critical log message.

System_CAPS_pubmethodSystem_CAPS_static WriteError(ILogger, String)

Writes an error log message.

System_CAPS_pubmethodSystem_CAPS_static WriteError(ILogger, String, Exception)

Writes an error log message.

System_CAPS_pubmethodSystem_CAPS_static WriteInformation(ILogger, String)

Writes an informational log message.

System_CAPS_pubmethodSystem_CAPS_static WriteVerbose(ILogger, String)

Writes a verbose log message.

System_CAPS_pubmethodSystem_CAPS_static WriteWarning(ILogger, String, Exception)

Writes a warning log message.

System_CAPS_pubmethodSystem_CAPS_static WriteWarning(ILogger, String, String[])

Writes a warning log message.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Owin.Logging Namespace

Return to top