12 #ifdef LOG4CPP_HAVE_IO_H 15 #ifdef LOG4CPP_HAVE_UNISTD_H 31 return defaultMaintainer;
72 std::string parentName;
73 size_t dotIndex = name.find_last_of(
'.');
74 if (name.length() <= dotIndex) {
77 parentName = name.substr(0, dotIndex);
88 std::vector<Category*>* categories =
new std::vector<Category*>;
93 categories->push_back((*i).second);
104 ((*i).second)->removeAllAppenders();
110 for(handlers_t::const_iterator i =
handlers_.begin(), last =
handlers_.end(); i != last; ++i)
128 delete ((*i).second);
136 assert(0 != creator_function);
150 return new Category(name, parent, priority);
virtual Category & getInstance(const std::string &name)
virtual void deleteAllCategories()
static void set_category_factory(creator_function_t creator_function)
Category *(* creator_function_t)(const std::string &name, log4cpp::Category *parent, log4cpp::Priority::Value priority)
virtual Category * getExistingInstance(const std::string &name)
virtual Category & _getInstance(const std::string &name)
static creator_function_t _creator_function
void(* shutdown_fun_ptr)()
static Category * make_category(const std::string &name, log4cpp::Category *parent, log4cpp::Priority::Value priority)
virtual ~HierarchyMaintainer()
static HierarchyMaintainer & getDefaultMaintainer()
virtual std::vector< Category * > * getCurrentCategories() const
virtual Category * _getExistingInstance(const std::string &name)
threading::Mutex _categoryMutex
class LOG4CPP_EXPORT Category
void register_shutdown_handler(shutdown_fun_ptr handler)