OnlyOnceErrorHandler FirstError Method | Apache log4net™ SDK Documentation

Log the very first error

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

C#
VB
C++
F#
Copy

    public virtual void FirstError(
    	string message,
    	Exception e,
    	ErrorCode errorCode
    )

    Public Overridable Sub FirstError (
    	message As String,
    	e As Exception,
    	errorCode As ErrorCode
    )

    public:
    virtual void FirstError(
    	String^ message,
    	Exception^ e,
    	ErrorCode errorCode
    )

    abstract FirstError :
            message : string *
            e : Exception *
            errorCode : ErrorCode -> unit
    override FirstError :
            message : string *
            e : Exception *
            errorCode : ErrorCode -> unit

#### Parameters

message
  Type: System
  String
  The error message.
e
  Type: System
  Exception
  The exception.
errorCode
  Type: log4net.Core
  ErrorCode
  The internal error code.

Remarks

Sends the error information to LogLog's Error method.

See Also

#### Reference

OnlyOnceErrorHandler Class
log4net.Util Namespace