IErrorHandler Interface | Apache log4net™ SDK Documentation

Appenders may delegate their error handling to an IErrorHandler.

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

C#
VB
C++
F#
Copy

    public interface IErrorHandler

    Public Interface IErrorHandler

    public interface class IErrorHandler

    type IErrorHandler =  interface end

Methods

| Name | Description
--- | --- | ---
| Error(String) | Prints the error message passed as a parameter.
| Error(String, Exception) | Prints the error message passed as a parameter.
| Error(String, Exception, ErrorCode) | Handles the error and information about the error condition is passed as a parameter.

Top
Remarks

Error handling is a particularly tedious to get right because by definition errors are hard to predict and to reproduce.

See Also

#### Reference

log4net.Core Namespace