Share via


LoggerExtensions.WriteError Method

 

Writes an error message for the specified logger.

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

Overload List

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

See Also

LoggerExtensions Class
Microsoft.Owin.Logging Namespace

Return to top

LoggerExtensions.WriteError Method (ILogger, String)

Writes an error log message.

Syntax

public static void WriteError(
    this ILogger logger,
    string message
)
public:
[ExtensionAttribute]
static void WriteError(
    ILogger^ logger,
    String^ message
)
static member WriteError : 
        logger:ILogger *
        message:string -> unit
<ExtensionAttribute>
Public Shared Sub WriteError (
    logger As ILogger,
    message As String
)

Parameters

Return to top

LoggerExtensions.WriteError Method (ILogger, String, Exception)

Writes an error log message.

Syntax

public static void WriteError(
    this ILogger logger,
    string message,
    Exception error
)
public:
[ExtensionAttribute]
static void WriteError(
    ILogger^ logger,
    String^ message,
    Exception^ error
)
static member WriteError : 
        logger:ILogger *
        message:string *
        error:Exception -> unit
<ExtensionAttribute>
Public Shared Sub WriteError (
    logger As ILogger,
    message As String,
    error As Exception
)

Parameters

Return to top