Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Writes an error message for the specified logger.
Namespace: Microsoft.Owin.Logging
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
WriteError(ILogger, String) | Writes an error log message. |
![]() ![]() |
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
- logger
Type: Microsoft.Owin.Logging.ILogger
- message
Type: System.String
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
- logger
Type: Microsoft.Owin.Logging.ILogger
- message
Type: System.String
- error
Type: System.Exception
Return to top