LogImpl Fatal Method (Object) | Apache log4net™ SDK Documentation

Logs a message object with the FATAL level.

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

C#
VB
C++
F#
Copy

    public virtual void Fatal(
    	Object message
    )

    Public Overridable Sub Fatal (
    	message As Object
    )

    public:
    virtual void Fatal(
    	Object^ message
    )

    abstract Fatal :
            message : Object -> unit
    override Fatal :
            message : Object -> unit

#### Parameters

message
  Type: System
  Object
  The message object to log.

#### Implements

ILog
Fatal(Object)
Remarks

This method first checks if this logger is FATAL enabled by comparing the level of this logger with the FATAL level. 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 [M:Fatal(object,Exception)] form instead.

See Also

#### Reference

LogImpl Class
Fatal Overload
log4net.Core Namespace