log4net SDK Reference

ILog.Debug Method (Object)

Log a message object with the Debug level.

[Visual Basic]
Sub Debug( _
   ByVal message As Object _
)
[C#]
void Debug(
   object message
);

Parameters

message
The message object to log.

Remarks

This method first checks if this logger is DEBUG enabled by comparing the level of this logger with the Debug level. If this logger is DEBUG 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 Debug form instead.

See Also

ILog Interface | log4net Namespace | ILog.Debug Overload List | Debug | IsDebugEnabled