LoggerExtensions.WriteCritical Method
Writes a critical message for the specified logger.
Namespace: Microsoft.Owin.Logging
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
Overload List
Name | Description | |
---|---|---|
WriteCritical(ILogger, String) | Writes a critical log message. |
|
WriteCritical(ILogger, String, Exception) | Writes a critical log message. |
See Also
LoggerExtensions Class
Microsoft.Owin.Logging Namespace
Return to top
LoggerExtensions.WriteCritical Method (ILogger, String)
Writes a critical log message.
Syntax
public static void WriteCritical(
this ILogger logger,
string message
)
public:
[ExtensionAttribute]
static void WriteCritical(
ILogger^ logger,
String^ message
)
static member WriteCritical :
logger:ILogger *
message:string -> unit
<ExtensionAttribute>
Public Shared Sub WriteCritical (
logger As ILogger,
message As String
)
Parameters
- logger
Type: Microsoft.Owin.Logging.ILogger
- message
Type: System.String
Return to top
LoggerExtensions.WriteCritical Method (ILogger, String, Exception)
Writes a critical log message.
Syntax
public static void WriteCritical(
this ILogger logger,
string message,
Exception error
)
public:
[ExtensionAttribute]
static void WriteCritical(
ILogger^ logger,
String^ message,
Exception^ error
)
static member WriteCritical :
logger:ILogger *
message:string *
error:Exception -> unit
<ExtensionAttribute>
Public Shared Sub WriteCritical (
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