18#ifndef _LOG4CXX_SPI_ERROR_HANDLER_H
19#define _LOG4CXX_SPI_ERROR_HANDLER_H
90 ,
const std::exception& e
113 ,
const std::exception& e
Appenders may delegate their error handling to ErrorHandlers.
Definition errorhandler.h:55
virtual void error(const LogString &context, const std::exception &e, ErrorCode category=ErrorCode::GENERIC_FAILURE)=0
This method is invoked when an exception is thown.
virtual void setAppender(const AppenderPtr &appender)
Override this to set the appender holding this error handler.
virtual void error(const LogString &context, const std::exception &e, ErrorCode category, const LoggingEventPtr &event)
This method is invoked when an exception is thown while processing a spi::LoggingEvent.
virtual void addAppenderHolder(const LogString &name, const AppenderAttachablePtr &clx)
Override this to add clx to the list of collections to search for the failed appender.
virtual void setBackupAppender(const AppenderPtr &appender)
Override this to set the appender to fallback upon in case of failure.
virtual bool errorReported() const
Override this to report whether an error been raised to this reporter.
virtual void error(const LogString &message, ErrorCode category=ErrorCode::INVALID_CONFIGURATION)=0
This method is invoked when an error is detected but an exception is not available (e....
virtual void setLogger(const LoggerPtr &logger)
Override this to add a reference to a logger to which the failing appender might be attached.
void activateOptions() override
Activate the options that were previously set with calls to option setters.
A string based interface to configure package components.
Definition optionhandler.h:37
virtual void activateOptions()=0
Activate the options that were previously set with calls to option setters.
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition appender.h:32
LOG4CXX_PTR_DEF(LoggingEvent)
ErrorCode
Definition errorhandler.h:31
@ INVALID_CONFIGURATION
Definition errorhandler.h:37
@ GENERIC_FAILURE
Definition errorhandler.h:31
@ ROLLOVER_FAILURE
Definition errorhandler.h:36
@ CLOSE_FAILURE
Definition errorhandler.h:34
@ FLUSH_FAILURE
Definition errorhandler.h:33
@ WRITE_FAILURE
Definition errorhandler.h:32
@ OPEN_FAILURE
Definition errorhandler.h:35
std::basic_string< logchar > LogString
Definition logstring.h:51
std::shared_ptr< Appender > AppenderPtr
Definition basicconfigurator.h:29
std::shared_ptr< Logger > LoggerPtr
Definition provisionnode.h:28
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:153
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition object.h:37
#define END_LOG4CXX_CAST_MAP()
Definition object.h:147
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:141