12 #ifdef LOG4CPP_HAVE_UNISTD_H 72 throw(std::invalid_argument) {
79 throw std::invalid_argument(
"cannot set priority NOTSET on Root Category");
95 throw(std::invalid_argument) {
99 AppenderSet::iterator i =
_appender.find(appender);
107 throw std::invalid_argument(
"NULL appender");
114 AppenderSet::iterator i =
_appender.find(&appender);
125 AppenderSet::const_iterator i =
_appender.begin();
126 return (
_appender.end() == i) ? NULL : *i;
133 AppenderSet::const_iterator i =
_appender.begin();
136 return((*i)->getAppender(name));
154 for (AppenderSet::iterator i =
_appender.begin();
157 OwnsAppenderMap::iterator i2;
171 AppenderSet::iterator i =
_appender.find(appender);
173 OwnsAppenderMap::iterator i2;
190 if (NULL != appender) {
191 OwnsAppenderMap::const_iterator i =
204 Category::OwnsAppenderMap::iterator& i2)
throw() {
207 if (NULL != appender) {
224 for(AppenderSet::const_iterator i =
_appender.begin();
226 (*i)->doAppend(event);
253 va_list arguments)
throw() {
258 const std::string& message)
throw() {
268 const char* stringFormat, ...) throw() {
271 va_start(va, stringFormat);
278 const std::string& message)
throw() {
284 const char* stringFormat,
285 va_list va)
throw() {
294 va_start(va,stringFormat);
308 va_start(va,stringFormat);
322 va_start(va,stringFormat);
336 va_start(va,stringFormat);
350 va_start(va,stringFormat);
364 va_start(va,stringFormat);
378 va_start(va,stringFormat);
392 va_start(va,stringFormat);
406 va_start(va,stringFormat);
void notice(const char *stringFormat,...)
Category(const std::string &name, Category *parent, Priority::Value priority=Priority::NOTSET)
virtual void callAppenders(const LoggingEvent &event)
virtual AppenderSet getAllAppenders() const
void debug(const char *stringFormat,...)
OwnsAppenderMap _ownsAppender
virtual Category & getInstance(const std::string &name)
void fatal(const char *stringFormat,...)
virtual Category * getParent()
void warn(const char *stringFormat,...)
static std::string vform(const char *format, va_list args)
static Priority::Value getRootPriority()
virtual CategoryStream operator<<(Priority::Value priority)
virtual Appender * getAppender() const
virtual void setAdditivity(bool additivity)
virtual void log(Priority::Value priority, const char *stringFormat,...)
static Category & getInstance(const std::string &name)
virtual bool ownsAppender() const
void crit(const char *stringFormat,...)
virtual Priority::Value getChainedPriority() const
static const std::string & get()
virtual Category * getExistingInstance(const std::string &name)
virtual void logva(Priority::Value priority, const char *stringFormat, va_list va)
static void setRootPriority(Priority::Value priority)
virtual void removeAllAppenders()
threading::Mutex _appenderSetMutex
static Category & getRoot()
class LOG4CPP_EXPORT CategoryStream
virtual const std::string & getName() const
volatile bool _isAdditive
virtual void removeAppender(Appender *appender)
virtual void _logUnconditionally(Priority::Value priority, const char *format, va_list arguments)
std::set< Appender * > AppenderSet
virtual bool getAdditivity() const
virtual Priority::Value getPriority() const
virtual void setPriority(Priority::Value priority)
virtual bool isPriorityEnabled(Priority::Value priority) const
static std::vector< Category * > * getCurrentCategories()
void alert(const char *stringFormat,...)
static HierarchyMaintainer & getDefaultMaintainer()
void info(const char *stringFormat,...)
static Category * exists(const std::string &name)
volatile Priority::Value _priority
virtual void addAppender(Appender *appender)
virtual CategoryStream getStream(Priority::Value priority)
void error(const char *stringFormat,...)
void emerg(const char *stringFormat,...)
virtual void _logUnconditionally2(Priority::Value priority, const std::string &message)