log4net SDK Reference

OnlyOnceErrorHandler Class

Implements log4net's default error handling policy which consists of emitting a message for the first error in an appender and ignoring all subsequent errors.

For a list of all members of this type, see OnlyOnceErrorHandler Members.

System.Object
   log4net.Util.OnlyOnceErrorHandler

[Visual Basic]
Public Class OnlyOnceErrorHandler
    Implements IErrorHandler
[C#]
public class OnlyOnceErrorHandler : IErrorHandler

Thread Safety

This type is not safe for multithreaded operations.

Remarks

The error message is printed on the standard error output stream.

This policy aims at protecting an otherwise working application from being flooded with error messages when logging fails.

Requirements

Namespace: log4net.Util

Assembly: log4net (in log4net.dll)

See Also

OnlyOnceErrorHandler Members | log4net.Util Namespace