29 if (!appenders_factory_)
37 #if !defined(LOG4CPP_DISABLE_REMOTE_SYSLOG) 42 #if defined(LOG4CPP_HAVE_LIBIDSA) 46 #if defined(LOG4CPP_HAVE_SYSLOG) 55 #if !defined(LOG4CPP_DISABLE_SMTP) 56 #if defined(LOG4CPP_HAVE_BOOST) 57 #include <boost/version.hpp> 58 #if BOOST_VERSION >= 103500 60 #endif // BOOST_VERSION >= 103500 61 #endif // LOG4CPP_HAVE_BOOST 62 #endif // LOG4CPP_DISABLE_SMTP 64 appenders_factory_ = af.release();
74 throw std::invalid_argument(
"Appender creator for type name '" + class_name +
"' already registered");
83 throw std::invalid_argument(
"There is no appender with type name '" + class_name +
"'");
85 return (*i->second)(params);
std::auto_ptr< Appender > create_generation_file_appender(const FactoryParams &)
std::auto_ptr< Appender > create_abort_appender(const FactoryParams ¶ms)
creators_t::const_iterator const_iterator
std::auto_ptr< Appender > create_syslog_appender(const FactoryParams &)
std::auto_ptr< Appender > create(const std::string &class_name, const params_t ¶ms)
std::auto_ptr< Appender > create_idsa_appender(const FactoryParams &)
std::auto_ptr< Appender >(* create_function_t)(const params_t ¶ms)
std::auto_ptr< Appender > create_remote_syslog_appender(const FactoryParams &)
static AppendersFactory & getInstance()
void registerCreator(const std::string &class_name, create_function_t create_function)
std::auto_ptr< Appender > create_nt_event_log_appender(const FactoryParams &)
std::auto_ptr< Appender > create_roll_file_appender(const FactoryParams &)
std::auto_ptr< Appender > create_smtp_appender(const FactoryParams &)
bool registered(const std::string &class_name) const
std::auto_ptr< Appender > create_file_appender(const FactoryParams &)
static AppendersFactory * appenders_factory_
std::auto_ptr< Appender > create_win32_debug_appender(const FactoryParams &)
std::auto_ptr< Appender > create_daily_roll_file_appender(const FactoryParams &)