|
|
OnlyOnceErrorHandler Class ReferenceInheritance diagram for OnlyOnceErrorHandler:
[legend]Collaboration diagram for OnlyOnceErrorHandler:
[legend]List of all members.
Detailed Description
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
Member Function Documentation
void activateOptions |
( |
|
) |
[virtual] |
|
void error |
( |
const String & |
message |
) |
const [virtual] |
|
|
Print a the error message passed as parameter on System.err .
Implements ErrorHandler. |
|
Prints the message and the stack trace of the exception on System.err . |
void error |
( |
const String & |
message, |
|
|
Exception & |
e, |
|
|
int |
errorCode |
|
) |
const |
|
|
Prints the message and the stack trace of the exception on System.err . |
void setAppender |
( |
const AppenderPtr & |
appender |
) |
[virtual] |
|
void setBackupAppender |
( |
const AppenderPtr & |
appender |
) |
[virtual] |
|
void setLogger |
( |
const LoggerPtr & |
logger |
) |
[virtual] |
|
void setOption |
( |
const String & |
name, |
|
|
const String & |
value |
|
) |
[virtual] |
|
|
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 OptionHandler. |
The documentation for this class was generated from the following files:
- onlyonceerrorhandler.h
- onlyonceerrorhandler.cpp
|
|
Copyright © 1999-2004, Apache Software Foundation
|