Common Logging 2.0 API Reference

AbstractLogger.Fatal(Action, Exception) Method

Log a message with the Fatal level using a callback to obtain the message

[Visual Basic]
Public Overridable Overloads Sub Fatal( _
   ByVal formatMessageCallback As Action(Of FormatMessageHandler), _
   ByVal exception As Exception _
) _
    Implements ILog.Fatal
[C#]
public virtual void Fatal(
   Action<FormatMessageHandlerformatMessageCallback,
   Exception exception
);

Parameters

formatMessageCallback
A callback used by the logger to obtain the message if log level is matched
exception
The exception to log, including its stack Fatal.

Implements

ILog.Fatal

Remarks

Using this method avoids the cost of creating a message and evaluating message arguments that probably won't be logged due to loglevel settings.

See Also

AbstractLogger Class | Common.Logging.Factory Namespace | AbstractLogger.Fatal Overload List