Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LogImpl.Error�Method�(Object, Exception)

Logs a message object with the ERROR level

[Visual�Basic]
Overridable�Overloads�Public�Sub�Error( _
���ByVal message�As�Object,�_
���ByVal exception�As�Exception�_
)�_
����Implements�ILog.Error
[C#]
public�virtual�void�Error(
���objectmessage,
���Exceptionexception
);

Parameters

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

Implements

ILog.Error

Remarks

Logs a message object with the ERROR level including the stack trace of the Exception exception passed as a parameter.

See the Error form for more detailed information.

See Also

LogImpl Class | log4net.Core Namespace | LogImpl.Error Overload List | Error