Common Logging 2.0 API Reference

ILog.Warn(Action) Method

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

[Visual Basic]
Public Sub Warn( _
   ByVal formatMessageCallback As Action(Of FormatMessageHandler) _
)
[C#]
void Warn(
   Action<FormatMessageHandlerformatMessageCallback
);

Parameters

formatMessageCallback
A callback used by the logger to obtain the message if log level is matched

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.Warn Overload List