10 #ifndef _LOG4CPP_CATEGORY_HH 11 #define _LOG4CPP_CATEGORY_HH 107 virtual const
std::
string& getName() const throw();
116 virtual
void setPriority(
Priority::Value priority);
123 virtual
Priority::Value getPriority() const throw();
133 virtual
Priority::Value getChainedPriority() const throw();
141 virtual
bool isPriorityEnabled(
Priority::Value priority) const throw();
150 virtual
void addAppender(
Appender* appender);
159 virtual
void addAppender(
Appender& appender);
171 addAppender(appender);
173 removeAllAppenders();
184 addAppender(appender);
193 virtual Appender* getAppender()
const;
201 virtual Appender* getAppender(
const std::string& name)
const;
213 virtual void removeAllAppenders();
219 virtual void removeAppender(
Appender* appender);
228 return ownsAppender(getAppender());
236 virtual bool ownsAppender(
Appender* appender)
const throw();
249 virtual void callAppenders(
const LoggingEvent& event)
throw();
254 virtual void setAdditivity(
bool additivity);
259 virtual bool getAdditivity()
const throw();
266 virtual Category* getParent()
throw();
273 virtual const Category* getParent()
const throw();
291 const std::string& message)
throw();
302 const char* stringFormat,
311 void debug(
const char* stringFormat, ...)
throw();
317 void debug(
const std::string& message)
throw();
324 if( !_ValidDebugEnabledCache )
327 _ValidDebugEnabledCache =
true;
329 return _DebugEnabled;
346 void info(
const char* stringFormat, ...)
throw();
354 void info_push(
const char* stringFormat, ...)
throw();
362 void info_pop(
const char* stringFormat, ...)
throw();
368 void info(
const std::string& message)
throw();
375 if( !_ValidInfoEnabledCache )
378 _ValidInfoEnabledCache =
true;
397 void notice(
const char* stringFormat, ...)
throw();
403 void notice(
const std::string& message)
throw();
427 void warn(
const char* stringFormat, ...)
throw();
433 void warn(
const std::string& message)
throw();
440 if( !_ValidWarnEnabledCache )
443 _ValidWarnEnabledCache =
true;
462 void error(
const char* stringFormat, ...)
throw();
468 void error(
const std::string& message)
throw();
492 void crit(
const char* stringFormat, ...)
throw();
498 void crit(
const std::string& message)
throw();
522 void alert(
const char* stringFormat, ...)
throw();
528 void alert(
const std::string& message)
throw();
552 void emerg(
const char* stringFormat, ...)
throw();
558 void emerg(
const std::string& message)
throw();
584 void fatal(
const char* stringFormat, ...)
throw();
592 void fatal(
const std::string& message)
throw();
643 va_list arguments)
throw();
651 const std::string& message)
throw();
681 virtual bool ownsAppender(
Appender* appender,
682 OwnsAppenderMap::iterator& i2)
throw();
719 void InvalidateEnabledCache(
bool InvalidateAll =
true);
723 #endif // _LOG4CPP_CATEGORY_HH
bool isNoticeEnabled() const
Return true if the Category will log messages with priority NOTICE.
CategoryStream critStream()
Return a CategoryStream with priority CRIT.
HierarchyMaintainer is an internal log4cpp class.
CategoryStream errorStream()
Return a CategoryStream with priority ERROR.
Category * _parent
The parent of this category.
bool _DebugEnabled
Indicates that logging is enabled for Info level.
bool _ValidWarnEnabledCache
Indicates if the *Enabled flags are valid.
CategoryStream debugStream()
Return a CategoryStream with priority DEBUG.
CategoryStream emergStream()
Return a CategoryStream with priority EMERG.
bool isWarnEnabled()
Return true if the Category will log messages with priority WARN.
threading::Mutex _appenderSetMutex
bool isErrorEnabled() const
Return true if the Category will log messages with priority ERROR.
bool _ValidInfoEnabledCache
Indicates if the *Enabled flags are valid.
bool isInfoEnabled()
Return true if the Category will log messages with priority INFO.
CategoryStream infoStream()
Return a CategoryStream with priority INFO.
virtual void operator=(bool Value)
Set node value.
The top level namespace for all 'Log for C++' types and classes.
bool _ValidDebugEnabledCache
Indicates if the *Enabled flags are valid.
volatile Priority::Value _priority
The assigned priority of this category.
LOG4CPP_NS_BEGIN class LOG4CPP_EXPORT Category
volatile bool _isAdditive
Additivity is set to true by default, i.e.
virtual Category & getInstance(const std::string &name)
The Priority class provides importance levels with which one can categorize log messages.
const std::string _name
The name of this category.
std::ostream & operator<<(std::ostream &ostr, const GENICAM_NAMESPACE::gcstring &str)
STL operator out.
bool _InfoEnabled
Indicates that logging is enabled for Info level.
OwnsAppenderMap _ownsAppender
Whether the category holds the ownership of the appender.
This is the central class in the log4j package.
CategoryStream fatalStream()
Return a CategoryStream with priority FATAL.
void setAppender(Appender &appender)
Adds an Appender for this Category.
bool isDebugEnabled()
Return true if the Category will log messages with priority DEBUG.
CategoryStream noticeStream()
Return a CategoryStream with priority NOTICE.
CategoryStream alertStream()
Return a CategoryStream with priority ALERT.
std::set< Appender * > AppenderSet
std::map< Appender *, bool > OwnsAppenderMap
bool isFatalEnabled() const
Return true if the Category will log messages with priority FATAL.
bool isAlertEnabled() const
Return true if the Category will log messages with priority ALERT.
This class enables streaming simple types and objects to a category.
CategoryStream warnStream()
Return a CategoryStream with priority WARN.
virtual bool ownsAppender() const
Returns true if the Category owns the first Appender in its Appender set.
bool isCritEnabled() const
Return true if the Category will log messages with priority CRIT.
int Value
The type of Priority Values.
Implement this interface for your own strategies for printing log statements.
bool _WarnEnabled
Indicates that logging is enabled for Info level.
bool isEmergEnabled() const
Return true if the Category will log messages with priority EMERG.
virtual std::vector< Category * > * getCurrentCategories() const