18 #ifndef _LOG4CXX_HELPERS_ONLY_ONCE_ERROR_HANDLER_H 19 #define _LOG4CXX_HELPERS_ONLY_ONCE_ERROR_HANDLER_H 21 #include <log4cxx/spi/errorhandler.h> 22 #include <log4cxx/helpers/objectimpl.h> 25 #pragma warning ( push ) 26 #pragma warning (disable : 4251) // ::std::exception needs to have dll-interface 48 LogString WARN_PREFIX;
49 LogString ERROR_PREFIX;
50 mutable bool firstTime;
54 BEGIN_LOG4CXX_CAST_MAP()
57 END_LOG4CXX_CAST_MAP()
61 void releaseRef()
const;
73 void setOption(
const LogString& option,
const LogString& value);
79 void error(
const LogString& message,
const std::exception& e,
85 void error(
const LogString& message,
const std::exception& e,
92 void error(
const LogString& message)
const;
102 void setBackupAppender(
const AppenderPtr& appender);
107 #if defined(_MSC_VER) 108 #pragma warning (pop) 111 #endif //_LOG4CXX_HELPERS_ONLY_ONCE_ERROR_HANDLER_H The OnlyOnceErrorHandler implements log4cxx's default error handling policy which consists of emittin...
Definition: onlyonceerrorhandler.h:43
Implementation class for Object.
Definition: objectimpl.h:28
A string based interface to configure package components.
Definition: optionhandler.h:35
Appenders may delegate their error handling to ErrorHandlers.
Definition: errorhandler.h:64
Definition: appender.h:33