10#ifndef _LOG4SHIB_FIXEDCONTEXTCATEGORY_HH
11#define _LOG4SHIB_FIXEDCONTEXTCATEGORY_HH
41 const std::string& context =
"");
53 virtual void setContext(
const std::string& context);
153 const std::string& message)
throw();
163 std::string _context;
#define LOG4SHIB_EXPORT
Definition Export.hh:11
Implement this interface for your own strategies for printing log statements.
Definition Appender.hh:33
Category(const std::string &name, Category *parent, Priority::Value priority=Priority::NOTSET)
Constructor.
Definition Category.cpp:52
virtual bool getAdditivity() const
Returns the additivity flag for this Category instance.
Definition FixedContextCategory.cpp:85
virtual Appender * getAppender() const
Returns the Appender for this Category, or NULL if no Appender has been set.
Definition FixedContextCategory.cpp:55
virtual void addAppender(Appender *appender)
For the moment this method does nothing.
Definition FixedContextCategory.cpp:47
FixedContextCategory(const std::string &name, const std::string &context="")
Constructor.
Definition FixedContextCategory.cpp:15
virtual void removeAllAppenders()
Removes all appenders set for this Category.
Definition FixedContextCategory.cpp:68
virtual AppenderSet getAllAppenders() const
Returns the set of Appenders currently attached to this Catogory.
Definition FixedContextCategory.cpp:64
virtual Priority::Value getChainedPriority() const
Starting from this Category, search the category hierarchy for a set priority and return it.
Definition FixedContextCategory.cpp:37
virtual void _logUnconditionally2(Priority::Value priority, const std::string &message)
Unconditionally log a message with the specified priority.
Definition FixedContextCategory.cpp:89
virtual bool ownsAppender(Appender *appender) const
FixedContextAppenders cannot own Appenders.
Definition FixedContextCategory.cpp:72
virtual void setContext(const std::string &context)
Set the context string used as NDC.
Definition FixedContextCategory.cpp:25
virtual std::string getContext() const
Return the context string used as NDC.
Definition FixedContextCategory.cpp:29
virtual void setAdditivity(bool additivity)
Set the additivity flag for this Category instance.
Definition FixedContextCategory.cpp:81
virtual Priority::Value getPriority() const
Returns the assigned Priority, if any, for this Category.
Definition FixedContextCategory.cpp:33
virtual void callAppenders(const LoggingEvent &event)
Call the appenders in the hierarchy starting at this.
Definition FixedContextCategory.cpp:76
int Value
The type of Priority Values.
Definition Priority.hh:84
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
std::set< Appender * > AppenderSet
Definition Appender.hh:147
The internal representation of logging events.
Definition LoggingEvent.hh:32