23 #ifndef _LOG4CPLUS_HIERARCHY_HEADER_
24 #define _LOG4CPLUS_HIERARCHY_HEADER_
26 #include "dcmtk/oflog/config.h"
38 class HierarchyLocker;
63 static const LogLevel DISABLE_OFF;
64 static const LogLevel DISABLE_OVERRIDE;
119 virtual void disable(LogLevel ll);
126 virtual void disableAll();
133 virtual void disableDebug();
140 virtual void disableInfo();
149 virtual void enableAll();
187 virtual bool isDisabled(
int level);
192 virtual Logger getRoot()
const;
207 virtual void resetConfiguration();
232 virtual void shutdown();
237 typedef OFListIterator(
Logger) ProvisionNodeIterator;
238 typedef
OFMap<log4cplus::
tstring, ProvisionNode> ProvisionNodeMap;
239 typedef
OFMap<log4cplus::tstring,
Logger> LoggerMap;
246 virtual
Logger getInstanceImpl(const log4cplus::tstring& name,
247 spi::LoggerFactory& factory);
253 virtual
void initializeLoggerList(
LoggerList& list) const;
275 void updateParents(
Logger logger);
291 void updateChildren(ProvisionNode& pn,
Logger logger);
294 LOG4CPLUS_MUTEX_PTR_DECLARE hashtable_mutex;
295 OFauto_ptr<spi::LoggerFactory> defaultFactory;
296 ProvisionNodeMap provisionNodes;
297 LoggerMap loggerPtrs;
302 bool emittedNoAppenderWarning;
303 bool emittedNoResourceBundleWarning;
307 Hierarchy& operator=(const Hierarchy&);
310 friend class log4cplus::spi::LoggerImpl;
316 #endif // _LOG4CPLUS_HIERARCHY_HEADER_