Common Logging 2.0 API Reference

NoOpLogger.Error(Action, Exception) Method

Ignores message.

[Visual Basic]
Public NotOverridable Overloads Sub Error( _
   ByVal formatMessageCallback As Action(Of FormatMessageHandler), _
   ByVal exception As Exception _
) _
    Implements ILog.Error
[C#]
public void Error(
   Action<FormatMessageHandlerformatMessageCallback,
   Exception exception
);

Parameters

formatMessageCallback
A callback used by the logger to obtain the message if log level is matched
exception
The exception to log, including its stack Error.

Implements

ILog.Error

See Also

NoOpLogger Class | Common.Logging.Simple Namespace | NoOpLogger.Error Overload List