Common Logging 2.0 API Reference

ILog.Debug(IFormatProvider, Action, Exception) Method

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

[Visual Basic]
Public Sub Debug( _
   ByVal formatProvider As IFormatProvider, _
   ByVal formatMessageCallback As Action(Of FormatMessageHandler), _
   ByVal exception As Exception _
)
[C#]
void Debug(
   IFormatProvider formatProvider,
   Action<FormatMessageHandlerformatMessageCallback,
   Exception exception
);

Parameters

formatProvider
An IFormatProvider that supplies culture-specific formatting information.
formatMessageCallback
A callback used by the logger to obtain the message if log level is matched
exception
The exception to log, including its stack Debug.

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

ILog Interface | Common.Logging Namespace | ILog.Debug Overload List