Go to the documentation of this file.
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();
282 virtual
void log(
Priority::Value priority, const
char* stringFormat,
290 virtual
void log(
Priority::Value priority,
291 const
std::
string& message) throw();
301 virtual
void logva(
Priority::Value priority,
302 const
char* stringFormat,
311 void debug(const
char* stringFormat, ...) throw();
317 void debug(const
std::
string& message) throw();
323 inline
bool isDebugEnabled() 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();
374 inline
bool isInfoEnabled() throw() {
375 if( !_ValidInfoEnabledCache )
378 _ValidInfoEnabledCache =
true;
397 void notice(
const char* stringFormat, ...) throw();
403 void notice(const
std::
string& message) throw();
409 inline
bool isNoticeEnabled() const throw() {
427 void warn(
const char* stringFormat, ...) throw();
433 void warn(const
std::
string& message) throw();
439 inline
bool isWarnEnabled() throw() {
440 if( !_ValidWarnEnabledCache )
443 _ValidWarnEnabledCache =
true;
462 void error(
const char* stringFormat, ...) throw();
468 void error(const
std::
string& message) throw();
474 inline
bool isErrorEnabled() const throw() {
492 void crit(
const char* stringFormat, ...) throw();
498 void crit(const
std::
string& message) throw();
504 inline
bool isCritEnabled() const throw() {
522 void alert(
const char* stringFormat, ...) throw();
528 void alert(const
std::
string& message) throw();
534 inline
bool isAlertEnabled() const throw() {
552 void emerg(
const char* stringFormat, ...) throw();
558 void emerg(const
std::
string& message) throw();
564 inline
bool isEmergEnabled() const throw() {
584 void fatal(
const char* stringFormat, ...) throw();
592 void fatal(const
std::
string& message) throw();
600 inline
bool isFatalEnabled() const 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
The top level namespace for all 'Log for C++' types and classes.
CategoryStream emergStream()
Return a CategoryStream with priority EMERG.
bool _ValidDebugEnabledCache
Indicates if the *Enabled flags are valid.
std::map< Appender *, bool > OwnsAppenderMap
This is the central class in the log4j package.
virtual std::vector< Category * > * getCurrentCategories() const
CategoryStream noticeStream()
Return a CategoryStream with priority NOTICE.
int Value
The type of Priority Values.
CategoryStream fatalStream()
Return a CategoryStream with priority FATAL.
virtual Category & getInstance(const std::string &name)
HierarchyMaintainer is an internal log4cpp class.
This class enables streaming simple types and objects to a category.
CategoryStream alertStream()
Return a CategoryStream with priority ALERT.
bool _ValidWarnEnabledCache
Indicates if the *Enabled flags are valid.
bool _DebugEnabled
Indicates that logging is enabled for Info level.
LOG4CPP_NS_BEGIN class LOG4CPP_EXPORT Category
std::set< Appender * > AppenderSet
CategoryStream debugStream()
Return a CategoryStream with priority DEBUG.
Implement this interface for your own strategies for printing log statements.
std::ostream & operator<<(std::ostream &ostr, const GENICAM_NAMESPACE::gcstring &str)
STL operator out.
OwnsAppenderMap _ownsAppender
Whether the category holds the ownership of the appender.
bool _ValidInfoEnabledCache
Indicates if the *Enabled flags are valid.
volatile Priority::Value _priority
The assigned priority of this category.
void setAppender(Appender &appender)
Adds an Appender for this Category.
threading::Mutex _appenderSetMutex
bool _InfoEnabled
Indicates that logging is enabled for Info level.
CategoryStream warnStream()
Return a CategoryStream with priority WARN.
CategoryStream critStream()
Return a CategoryStream with priority CRIT.
virtual bool ownsAppender() const
Returns true if the Category owns the first Appender in its Appender set.
Category * _parent
The parent of this category.
virtual IBoolean & operator=(bool Value)
Set node value.
volatile bool _isAdditive
Additivity is set to true by default, i.e.
The Priority class provides importance levels with which one can categorize log messages.
const std::string _name
The name of this category.
CategoryStream errorStream()
Return a CategoryStream with priority ERROR.
bool _WarnEnabled
Indicates that logging is enabled for Info level.
CategoryStream infoStream()
Return a CategoryStream with priority INFO.
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11