OnlyOnceErrorHandler Error Method (String) | Apache log4net™ SDK Documentation

Log an error

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

C#
VB
C++
F#
Copy

    public void Error(
    	string message
    )

    Public Sub Error (
    	message As String
    )

    public:
    virtual void Error(
    	String^ message
    ) sealed

    abstract Error :
            message : string -> unit
    override Error :
            message : string -> unit

#### Parameters

message
  Type: System
  String
  The error message.

#### Implements

IErrorHandler
Error(String)
Remarks

Invokes FirstError(String, Exception, ErrorCode) if and only if this is the first error or the first error after Reset
has been called.

See Also

#### Reference

OnlyOnceErrorHandler Class
Error Overload
log4net.Util Namespace