Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

ILogExtensions.FatalExt�Method�(ILog, Object)

Log a message object with the Fatal level.

[Visual�Basic]
Overloads�Public�Shared�Sub�FatalExt( _
���ByVal logger�As�ILog,�_
���ByVal message�As�Object�_
)
[C#]
public�static�void�FatalExt(
���ILoglogger,
���objectmessage
);

Parameters

logger
The logger on which the message is logged.
message
The message object to log.

Remarks

This method first checks if this logger is FATAL enabled by reading the value property. This check happens always and does not depend on the implementation. If this logger is FATAL enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate IObjectRenderer. It then proceeds to call all the registered appenders in this logger and also higher in the hierarchy depending on the value of the additivity flag.

WARNING Note that passing an Exception to this method will print the name of the Exception but no stack trace. To print a stack trace use the FatalExt form instead.

See Also

ILogExtensions Class | log4net.Util Namespace | ILogExtensions.FatalExt Overload List | IsFatalEnabled | ILog | Fatal | IsFatalEnabled