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

Prints the message and the stack trace of the exception on the standard error output stream.

See Also

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