Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

ILog.Error�Method�(Object, Exception)

Log a message object with the Error level including the stack trace of the Exception passed as a parameter.

[Visual�Basic]
Sub�Error( _
���ByVal message�As�Object,�_
���ByVal exception�As�Exception�_
)
[C#]
void�Error(
���objectmessage,
���Exceptionexception
);

Parameters

message
The message object to log.
exception
The exception to log, including its stack trace.

Remarks

See the Error form for more detailed information.

See Also

ILog Interface | log4net Namespace | ILog.Error Overload List | Error | IsErrorEnabled