ILog Error Method (Object, Exception) | Apache log4net™ SDK Documentation

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

Namespace: log4net
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    void Error(
    	Object message,
    	Exception exception
    )

    Sub Error (
    	message As Object,
    	exception As Exception
    )

    void Error(
    	Object^ message,
    	Exception^ exception
    )

    abstract Error :
            message : Object *
            exception : Exception -> unit

#### Parameters

message
  Type: System
  Object
  The message object to log.
exception
  Type: System
  Exception
  The exception to log, including its stack trace.

Remarks

See the [M:Error(object)] form for more detailed information.

See Also

#### Reference

ILog Interface
Error Overload
log4net Namespace
[M:Error(object)]
ILog
IsErrorEnabled