Log4gOnlyOnceErrorHandler

Log4gOnlyOnceErrorHandler — Emit an error only once

Synopsis

                    Log4gOnlyOnceErrorHandler;
                    Log4gOnlyOnceErrorHandlerClass;
Log4gErrorHandler * log4g_only_once_error_handler_new   (void);

Description

This class implements Log4g's default error handling policy. Only the first error will be logged, following errors will be ignored.

The error message is printed on stderr.

This policy is intended to prevent a working application from being flooded with errors if there is a failure within Log4g.

Details

Log4gOnlyOnceErrorHandler

typedef struct {
} Log4gOnlyOnceErrorHandler;

The Log4gOnlyOnceErrorHandler structure does not have any public members.


Log4gOnlyOnceErrorHandlerClass

typedef struct {
} Log4gOnlyOnceErrorHandlerClass;

The Log4gOnlyOnceErrorHandlerClass structure does not have any public members.


log4g_only_once_error_handler_new ()

Log4gErrorHandler * log4g_only_once_error_handler_new   (void);

Create a new only once error handler object.

Returns :

A new only once error handler object.

Since 0.1

See Also

Log4gErrorHandlerInterface