10 #ifndef _LOG4CPP_FIXEDCONTEXTCATEGORY_HH 11 #define _LOG4CPP_FIXEDCONTEXTCATEGORY_HH 41 const std::string& context =
"");
53 virtual void setContext(
const std::string& context);
59 virtual std::string getContext()
const;
159 const std::string& message)
throw();
174 #endif // _LOG4CPP_FIXEDCONTEXTCATEGORY_HH
virtual Priority::Value getChainedPriority() const
Starting from this Category, search the category hierarchy for a set priority and return it...
virtual AppenderSet getAllAppenders() const
Returns the set of Appenders currently attached to this Catogory.
The top level namespace for all 'Log for C++' types and classes.
virtual void _logUnconditionally2(Priority::Value priority, const std::string &message)
Unconditionally log a message with the specified priority.
virtual Priority::Value getPriority() const
Returns the assigned Priority, if any, for this Category.
virtual void setAdditivity(bool additivity)
Set the additivity flag for this Category instance.
virtual void callAppenders(const LoggingEvent &event)
Call the appenders in the hierarchy starting at this.
This is the central class in the log4j package.
std::string _context
The context of this FixedContextCategory.
virtual void removeAllAppenders()
Removes all appenders for this Category.
virtual Appender * getAppender() const
Returns the first Appender for this Category, or NULL if no Appender has been set.
std::set< Appender * > AppenderSet
virtual void addAppender(Appender *appender)
Adds an Appender to this Category.
This Category subclass replaces the NDC field in LoggingEvents with a fixed context string...
virtual bool ownsAppender() const
Returns true if the Category owns the first Appender in its Appender set.
virtual bool getAdditivity() const
Returns the additivity flag for this Category instance.
int Value
The type of Priority Values.
Implement this interface for your own strategies for printing log statements.
Category & _delegate
The delegate category of this FixedContextCategory.