10#ifndef _LOG4CPP_CATEGORY_HH
11#define _LOG4CPP_CATEGORY_HH
19#include <log4cpp/convenience.h>
101 static void shutdownForced();
176 removeAllAppenders();
196 virtual Appender* getAppender()
const;
204 virtual Appender* getAppender(
const std::string&
name)
const;
216 virtual void removeAllAppenders();
231 return ownsAppender(getAppender());
327 return isPriorityEnabled(Priority::DEBUG);
335 return getStream(Priority::DEBUG);
357 return isPriorityEnabled(Priority::INFO);
365 return getStream(Priority::INFO);
387 return isPriorityEnabled(Priority::NOTICE);
395 return getStream(Priority::NOTICE);
417 return isPriorityEnabled(Priority::WARN);
425 return getStream(Priority::WARN);
447 return isPriorityEnabled(Priority::ERROR);
455 return getStream(Priority::ERROR);
477 return isPriorityEnabled(Priority::CRIT);
485 return getStream(Priority::CRIT);
507 return isPriorityEnabled(Priority::ALERT);
515 return getStream(Priority::ALERT);
537 return isPriorityEnabled(Priority::EMERG);
545 return getStream(Priority::EMERG);
573 return isPriorityEnabled(Priority::FATAL);
583 return getStream(Priority::FATAL);
632 const std::string _name;
645 typedef std::map<Appender *, bool> OwnsAppenderMap;
664 OwnsAppenderMap _ownsAppender;
670 volatile bool _isAdditive;
#define LOG4CPP_EXPORT
Definition Export.hh:26
#define LOG4CPP_UNIQUE_PTR
Definition Portability.hh:73
#define LOG4CPP_NOTHROW
Definition Portability.hh:80
Implement this interface for your own strategies for printing log statements.
Definition Appender.hh:34
This class enables streaming simple types and objects to a category.
Definition CategoryStream.hh:39
This is the central class in the log4j package.
Definition Category.hh:33
CategoryStream critStream()
Return a CategoryStream with priority CRIT.
Definition Category.hh:484
CategoryStream noticeStream()
Return a CategoryStream with priority NOTICE.
Definition Category.hh:394
CategoryStream emergStream()
Return a CategoryStream with priority EMERG.
Definition Category.hh:544
CategoryStream infoStream()
Return a CategoryStream with priority INFO.
Definition Category.hh:364
CategoryStream alertStream() LOG4CPP_NOTHROW
Return a CategoryStream with priority ALERT.
Definition Category.hh:514
CategoryStream fatalStream()
Return a CategoryStream with priority FATAL.
Definition Category.hh:582
CategoryStream warnStream()
Return a CategoryStream with priority WARN.
Definition Category.hh:424
virtual bool ownsAppender() const LOG4CPP_NOTHROW
Returns true if the Category owns the first Appender in its Appender set.
Definition Category.hh:230
void setAppender(Appender &appender)
Adds an Appender for this Category.
Definition Category.hh:186
CategoryStream errorStream()
Return a CategoryStream with priority ERROR.
Definition Category.hh:454
CategoryStream debugStream()
Return a CategoryStream with priority DEBUG.
Definition Category.hh:334
HierarchyMaintainer is an internal log4cpp class.
Definition HierarchyMaintainer.hh:27
The Priority class provides importance levels with which one can categorize log messages.
Definition Priority.hh:61
int Value
The type of Priority Values.
Definition Priority.hh:85
Definition PThreads.hh:29
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
std::set< Appender * > AppenderSet
Definition Appender.hh:165
ostream & operator<<(ostream &os, const width &w)
Definition Manipulator.cpp:10
Definition Portability.hh:59
The internal representation of logging events.
Definition LoggingEvent.hh:32