10 #ifndef _LOG4CPP_APPENDER_HH 11 #define _LOG4CPP_APPENDER_HH 24 #include <sys/types.h> 44 static Appender* getAppender(
const std::string& name);
50 static bool reopenAll();
56 static void closeAll();
83 virtual bool reopen() = 0;
89 virtual void close() = 0;
96 virtual bool requiresLayout()
const = 0;
102 virtual void setLayout(
Layout* layout) = 0;
129 virtual void setFilter(
Filter* filter) = 0;
135 virtual Filter* getFilter() = 0;
138 typedef std::map<std::string, Appender*> AppenderMap;
140 static AppenderMap& _getAllAppenders();
141 static void _deleteAllAppenders();
142 static void _deleteAllAppendersWOLock(std::vector<Appender*>& appenders);
143 static void _addAppender(
Appender* appender);
144 static void _removeAppender(
Appender* appender);
146 const std::string _name;
181 #endif // _LOG4CPP_APPENDER_HH
This is the central class in the log4j package.
Definition: Category.hh:32
Appender::AppenderMap * _allAppenders
single shared instance, nifty-counter defensed
Definition: Appender.hh:154
Users should extend this class to implement customized logging event filtering.
Definition: Filter.hh:49
Extend this abstract class to create your own log layout format.
Definition: Layout.hh:22
Definition: Appender.hh:163
#define LOG4CPP_EXPORT
Definition: Export.hh:26
The top level namespace for all 'Log for C++' types and classes.
Definition: AbortAppender.hh:16
The internal representation of logging events.
Definition: LoggingEvent.hh:32
int Value
The type of Priority Values.
Definition: Priority.hh:85
Implement this interface for your own strategies for printing log statements.
Definition: Appender.hh:34
Definition: Appender.hh:149
static Appender::AppenderMapStorageInitializer appenderMapStorageInitializer
static initializer for every translation unit
Definition: Appender.hh:176
Definition: PThreads.hh:28
std::set< Appender * > AppenderSet
Definition: Appender.hh:177
threading::Mutex _appenderMapMutex
mutex protecting map from multiple thread access
Definition: Appender.hh:158
const std::string & getName() const
Get the name of this appender.
Definition: Appender.hh:108