Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

OnlyOnceErrorHandler.Error�Method�(String, Exception)

Log an Error

[Visual�Basic]
NotOverridable�Overloads�Public�Sub�Error( _
���ByVal message�As�String,�_
���ByVal e�As�Exception�_
)�_
����Implements�IErrorHandler.Error
[C#]
public�void�Error(
���stringmessage,
���Exceptione
);

Parameters

message
The error message.
e
The exception.

Implements

IErrorHandler.Error

Remarks

Invokes FirstError if and only if this is the first error or the first error after Reset has been called.

See Also

OnlyOnceErrorHandler Class | log4net.Util Namespace | OnlyOnceErrorHandler.Error Overload List