Apache Log4cxx Version 1.1.0
|
The OnlyOnceErrorHandler
implements log4cxx's default error handling policy which consists of emitting a message for the first error in an appender and ignoring all following errors.
More...
#include <onlyonceerrorhandler.h>
The OnlyOnceErrorHandler
implements log4cxx's default error handling policy which consists of emitting a message for the first error in an appender and ignoring all following errors.
The error message is printed on System.err
.
This policy aims at protecting an otherwise working application from being flooded with error messages when logging fails
log4cxx::helpers::OnlyOnceErrorHandler::OnlyOnceErrorHandler | ( | ) |
log4cxx::helpers::OnlyOnceErrorHandler::~OnlyOnceErrorHandler | ( | ) |
|
overridevirtual |
No options to activate.
Implements log4cxx::spi::OptionHandler.
|
overridevirtual |
Print a the error message passed as parameter on System.err
.
Implements log4cxx::spi::ErrorHandler.
|
overridevirtual |
Prints the message and the stack trace of the exception on System.err
.
Implements log4cxx::spi::ErrorHandler.
|
overridevirtual |
Prints the message and the stack trace of the exception on System.err
.
Implements log4cxx::spi::ErrorHandler.
|
overridevirtual |
Does not do anything.
Implements log4cxx::spi::ErrorHandler.
|
overridevirtual |
Does not do anything.
Implements log4cxx::spi::ErrorHandler.
Does not do anything.
Implements log4cxx::spi::ErrorHandler.
|
overridevirtual |
Set option
to value
.
The handling of each option depends on the OptionHandler instance. Some options may become active immediately whereas other may be activated only when activateOptions is called.
Implements log4cxx::spi::OptionHandler.