10#ifndef _LOG4CPP_CATEGORY_HH
11#define _LOG4CPP_CATEGORY_HH
100 static void shutdownForced();
175 removeAllAppenders();
195 virtual Appender* getAppender()
const;
203 virtual Appender* getAppender(
const std::string&
name)
const;
215 virtual void removeAllAppenders();
230 return ownsAppender(getAppender());
322 return isPriorityEnabled(Priority::DEBUG);
330 return getStream(Priority::DEBUG);
352 return isPriorityEnabled(Priority::INFO);
360 return getStream(Priority::INFO);
382 return isPriorityEnabled(Priority::NOTICE);
390 return getStream(Priority::NOTICE);
412 return isPriorityEnabled(Priority::WARN);
420 return getStream(Priority::WARN);
442 return isPriorityEnabled(Priority::ERROR);
450 return getStream(Priority::ERROR);
472 return isPriorityEnabled(Priority::CRIT);
480 return getStream(Priority::CRIT);
502 return isPriorityEnabled(Priority::ALERT);
510 return getStream(Priority::ALERT);
532 return isPriorityEnabled(Priority::EMERG);
540 return getStream(Priority::EMERG);
568 return isPriorityEnabled(Priority::FATAL);
578 return getStream(Priority::FATAL);
606 virtual void _logUnconditionally(
Priority::Value priority,
const char* format,
622 const std::string _name;
635 typedef std::map<Appender*, bool> OwnsAppenderMap;
653 OwnsAppenderMap _ownsAppender;
659 volatile bool _isAdditive;
#define LOG4CPP_EXPORT
Definition Export.hh:26
#define LOG4CPP_UNIQUE_PTR
Definition Portability.hh:75
#define LOG4CPP_NOTHROW
Definition Portability.hh:82
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:32
CategoryStream critStream()
Return a CategoryStream with priority CRIT.
Definition Category.hh:479
CategoryStream noticeStream()
Return a CategoryStream with priority NOTICE.
Definition Category.hh:389
CategoryStream emergStream()
Return a CategoryStream with priority EMERG.
Definition Category.hh:539
CategoryStream infoStream()
Return a CategoryStream with priority INFO.
Definition Category.hh:359
CategoryStream alertStream() LOG4CPP_NOTHROW
Return a CategoryStream with priority ALERT.
Definition Category.hh:509
CategoryStream fatalStream()
Return a CategoryStream with priority FATAL.
Definition Category.hh:577
CategoryStream warnStream()
Return a CategoryStream with priority WARN.
Definition Category.hh:419
virtual bool ownsAppender() const LOG4CPP_NOTHROW
Returns true if the Category owns the first Appender in its Appender set.
Definition Category.hh:229
void setAppender(Appender &appender)
Adds an Appender for this Category.
Definition Category.hh:185
CategoryStream errorStream()
Return a CategoryStream with priority ERROR.
Definition Category.hh:449
CategoryStream debugStream()
Return a CategoryStream with priority DEBUG.
Definition Category.hh:329
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:28
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
ostream & operator<<(ostream &os, const width &w)
Definition Manipulator.cpp:10
std::set< Appender * > AppenderSet
Definition Appender.hh:177
Definition Portability.hh:61
The internal representation of logging events.
Definition LoggingEvent.hh:32