LoggerExtensions.WriteError Method (ILogger, String, Exception)

Writes an error message for the specified logger.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub WriteError ( _
    logger As ILogger, _
    message As String, _
    error As Exception _
)
'Usage
Dim logger As ILogger 
Dim message As String 
Dim error As Exception 

logger.WriteError(message, error)
public static void WriteError(
    this ILogger logger,
    string message,
    Exception error
)
[ExtensionAttribute]
public:
static void WriteError(
    ILogger^ logger, 
    String^ message, 
    Exception^ error
)
static member WriteError : 
        logger:ILogger * 
        message:string * 
        error:Exception -> unit
public static function WriteError(
    logger : ILogger, 
    message : String, 
    error : Exception
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILogger. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).

See Also

Reference

LoggerExtensions Class

WriteError Overload

Microsoft.Owin.Logging Namespace