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

Logs a message object with the ERROR level

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

C#
VB
C++
F#
Copy

    public virtual void Error(
    	Object message,
    	Exception exception
    )

    Public Overridable Sub Error (
    	message As Object,
    	exception As Exception
    )

    public:
    virtual void Error(
    	Object^ message,
    	Exception^ exception
    )

    abstract Error :
            message : Object *
            exception : Exception -> unit
    override 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.

#### Implements

ILog
Error(Object, Exception)
Remarks

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

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

See Also

#### Reference

LogImpl Class
Error Overload
log4net.Core Namespace
[M:Error(object)]