ILogExtensions FatalExt Method (ILog, Object, Exception) | Apache log4net™ SDK Documentation

Log a message object with the Fatal level including the stack trace of the Exception passed as a parameter.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static void FatalExt(
    	this ILog logger,
    	Object message,
    	Exception exception
    )

    <ExtensionAttribute>
    Public Shared Sub FatalExt (
    	logger As ILog,
    	message As Object,
    	exception As Exception
    )

    public:
    [ExtensionAttribute]
    static void FatalExt(
    	ILog^ logger,
    	Object^ message,
    	Exception^ exception
    )

    [<ExtensionAttribute>]
    static member FatalExt :
            logger : ILog *
            message : Object *
            exception : Exception -> unit

#### Parameters

logger
  Type: log4net
  ILog
  The logger on which the message is logged.
message
  Type: System
  Object
  The message object to log.
exception
  Type: System
  Exception
  The exception to log, including its stack trace.

#### Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILog. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

See the FatalExt(ILog, Object) form for more detailed information.

See Also

#### Reference

ILogExtensions Class
FatalExt Overload
log4net.Util Namespace
ILog
Fatal(Object)
ILog
IsFatalEnabled