24 #ifndef LOG4CPLUS_HIERARCHY_HEADER_ 25 #define LOG4CPLUS_HIERARCHY_HEADER_ 29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE) 42 class HierarchyLocker;
129 virtual void disableAll();
136 virtual void disableDebug();
143 virtual void disableInfo();
152 virtual void enableAll();
190 virtual bool isDisabled(
LogLevel level);
195 virtual Logger getRoot()
const;
210 virtual void resetConfiguration();
215 virtual void setLoggerFactory(std::unique_ptr<spi::LoggerFactory> factory);
235 virtual void shutdown();
239 typedef std::vector<Logger> ProvisionNode;
240 typedef std::map<log4cplus::tstring, ProvisionNode> ProvisionNodeMap;
241 typedef std::map<log4cplus::tstring, Logger> LoggerMap;
257 void initializeLoggerList(
LoggerList& list)
const;
300 std::unique_ptr<spi::LoggerFactory> defaultFactory;
301 ProvisionNodeMap provisionNodes;
302 LoggerMap loggerPtrs;
307 bool emittedNoAppenderWarning;
324 #endif // LOG4CPLUS_HIERARCHY_HEADER_
This is the central class in the log4cplus package.
#define LOG4CPLUS_PRIVATE
This is the central class in the log4cplus package.
This is used to lock a Hierarchy.
LOG4CPLUS_EXPORT Hierarchy & getDefaultHierarchy()
static const LogLevel DISABLE_OFF
std::basic_string< tchar > tstring
This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy.
This header defines the Logger class and the logging macros.
int LogLevel
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL,...
Implement this interface to create new instances of Logger or a sub-class of Logger.
static const LogLevel DISABLE_OVERRIDE
std::vector< Logger > LoggerList
This is a list of Loggers.