|
| FixedContextCategory (const std::string &name, const std::string &context="") |
| Constructor. More...
|
|
virtual | ~FixedContextCategory () |
| Destructor for Category. More...
|
|
virtual void | setContext (const std::string &context) |
| Set the context string used as NDC. More...
|
|
virtual std::string | getContext () const |
| Return the context string used as NDC. More...
|
|
virtual Priority::Value | getPriority () const throw () |
| Returns the assigned Priority, if any, for this Category. More...
|
|
virtual Priority::Value | getChainedPriority () const throw () |
| Starting from this Category, search the category hierarchy for a set priority and return it. More...
|
|
virtual void | addAppender (Appender *appender) throw () |
| For the moment this method does nothing. More...
|
|
virtual void | addAppender (Appender &appender) |
| For the moment this method does nothing. More...
|
|
virtual Appender * | getAppender () const |
| Returns the Appender for this Category, or NULL if no Appender has been set. More...
|
|
virtual Appender * | getAppender (const std::string &name) const |
| Returns the specified Appender for this Category, or NULL if the Appender is not attached to this Category. More...
|
|
virtual AppenderSet | getAllAppenders () const |
| Returns the set of Appenders currently attached to this Catogory. More...
|
|
virtual void | removeAllAppenders () |
| Removes all appenders set for this Category. More...
|
|
virtual bool | ownsAppender () const throw () |
| FixedContextAppenders cannot own Appenders. More...
|
|
virtual bool | ownsAppender (Appender *appender) const throw () |
| FixedContextAppenders cannot own Appenders. More...
|
|
virtual void | callAppenders (const LoggingEvent &event) throw () |
| Call the appenders in the hierarchy starting at this . More...
|
|
virtual void | setAdditivity (bool additivity) |
| Set the additivity flag for this Category instance. More...
|
|
virtual bool | getAdditivity () const throw () |
| Returns the additivity flag for this Category instance. More...
|
|
virtual | ~Category () |
| Destructor for Category. More...
|
|
virtual const std::string & | getName () const throw () |
| Return the category name. More...
|
|
virtual void | setPriority (Priority::Value priority) |
| Set the priority of this Category. More...
|
|
virtual bool | isPriorityEnabled (Priority::Value priority) const throw () |
| Returns true if the chained priority of the Category is equal to or higher than given priority. More...
|
|
void | setAppender (Appender *appender) |
| Adds an Appender to this Category. More...
|
|
void | setAppender (Appender &appender) |
| Adds an Appender for this Category. More...
|
|
virtual void | removeAppender (Appender *appender) |
| Removes specified appender for this Category. More...
|
|
virtual Category * | getParent () throw () |
| Returns the parent category of this category, or NULL if the category is the root category. More...
|
|
virtual const Category * | getParent () const throw () |
| Returns the parent category of this category, or NULL if the category is the root category. More...
|
|
virtual void | log (Priority::Value priority, const char *stringFormat,...) throw () |
| Log a message with the specified priority. More...
|
|
virtual void | log (Priority::Value priority, const std::string &message) throw () |
| Log a message with the specified priority. More...
|
|
virtual void | logva (Priority::Value priority, const char *stringFormat, va_list va) throw () |
| Log a message with the specified priority. More...
|
|
void | debug (const char *stringFormat,...) throw () |
| Log a message with debug priority. More...
|
|
void | debug (const std::string &message) throw () |
| Log a message with debug priority. More...
|
|
bool | isDebugEnabled () const throw () |
| Return true if the Category will log messages with priority DEBUG. More...
|
|
CategoryStream | debugStream () |
| Return a CategoryStream with priority DEBUG. More...
|
|
void | info (const char *stringFormat,...) throw () |
| Log a message with info priority. More...
|
|
void | info (const std::string &message) throw () |
| Log a message with info priority. More...
|
|
bool | isInfoEnabled () const throw () |
| Return true if the Category will log messages with priority INFO. More...
|
|
CategoryStream | infoStream () |
| Return a CategoryStream with priority INFO. More...
|
|
void | notice (const char *stringFormat,...) throw () |
| Log a message with notice priority. More...
|
|
void | notice (const std::string &message) throw () |
| Log a message with notice priority. More...
|
|
bool | isNoticeEnabled () const throw () |
| Return true if the Category will log messages with priority NOTICE. More...
|
|
CategoryStream | noticeStream () |
| Return a CategoryStream with priority NOTICE. More...
|
|
void | warn (const char *stringFormat,...) throw () |
| Log a message with warn priority. More...
|
|
void | warn (const std::string &message) throw () |
| Log a message with warn priority. More...
|
|
bool | isWarnEnabled () const throw () |
| Return true if the Category will log messages with priority WARN. More...
|
|
CategoryStream | warnStream () |
| Return a CategoryStream with priority WARN. More...
|
|
void | error (const char *stringFormat,...) throw () |
| Log a message with error priority. More...
|
|
void | error (const std::string &message) throw () |
| Log a message with error priority. More...
|
|
bool | isErrorEnabled () const throw () |
| Return true if the Category will log messages with priority ERROR. More...
|
|
CategoryStream | errorStream () |
| Return a CategoryStream with priority ERROR. More...
|
|
void | crit (const char *stringFormat,...) throw () |
| Log a message with crit priority. More...
|
|
void | crit (const std::string &message) throw () |
| Log a message with crit priority. More...
|
|
bool | isCritEnabled () const throw () |
| Return true if the Category will log messages with priority CRIT. More...
|
|
CategoryStream | critStream () |
| Return a CategoryStream with priority CRIT. More...
|
|
void | alert (const char *stringFormat,...) throw () |
| Log a message with alert priority. More...
|
|
void | alert (const std::string &message) throw () |
| Log a message with alert priority. More...
|
|
bool | isAlertEnabled () const throw () |
| Return true if the Category will log messages with priority ALERT. More...
|
|
CategoryStream | alertStream () throw () |
| Return a CategoryStream with priority ALERT. More...
|
|
void | emerg (const char *stringFormat,...) throw () |
| Log a message with emerg priority. More...
|
|
void | emerg (const std::string &message) throw () |
| Log a message with emerg priority. More...
|
|
bool | isEmergEnabled () const throw () |
| Return true if the Category will log messages with priority EMERG. More...
|
|
CategoryStream | emergStream () |
| Return a CategoryStream with priority EMERG. More...
|
|
void | fatal (const char *stringFormat,...) throw () |
| Log a message with fatal priority. More...
|
|
void | fatal (const std::string &message) throw () |
| Log a message with fatal priority. More...
|
|
bool | isFatalEnabled () const throw () |
| Return true if the Category will log messages with priority FATAL. More...
|
|
CategoryStream | fatalStream () |
| Return a CategoryStream with priority FATAL. More...
|
|
virtual CategoryStream | getStream (Priority::Value priority) |
| Return a CategoryStream with given Priority. More...
|
|
virtual CategoryStream | operator<< (Priority::Value priority) |
| Return a CategoryStream with given Priority. More...
|
|
This Category subclass replaces the NDC field in LoggingEvents with a fixed context string.
All handling of Appenders, etc. is delgated to the 'normal' Category with the same name. Its intended use is for object instances that serve a single client: they contruct a FixedContextCategory with the client identifier as context. Unlike with regular Category instances one has to explicitly create FixedContextCategory instances using the constructor. This also implies one has to take cake of destruction of the instance as well.
- Since
- 0.2.4