10 #ifndef _LOG4CPP_APPENDER_HH
11 #define _LOG4CPP_APPENDER_HH
18 #include <sys/types.h>
42 static Appender* getAppender(
const std::string& name);
48 static bool reopenAll();
54 static void closeAll();
81 virtual bool reopen() = 0;
87 virtual void close() = 0;
94 virtual bool requiresLayout()
const = 0;
100 virtual void setLayout(
Layout* layout) = 0;
106 inline const std::string&
getName()
const {
return _name; };
125 virtual void setFilter(
Filter* filter) = 0;
131 virtual Filter* getFilter() = 0;
134 typedef std::map<std::string, Appender*> AppenderMap;
136 static AppenderMap* _allAppenders;
139 static AppenderMap& _getAllAppenders();
140 static void _deleteAllAppenders();
141 static void _addAppender(
Appender* appender);
142 static void _removeAppender(
Appender* appender);
144 const std::string _name;
150 #endif // _LOG4CPP_APPENDER_HH
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
#define LOG4CPP_EXPORT
Definition: Export.hh:19
The internal representation of logging events.
Definition: LoggingEvent.hh:32
int Value
The type of Priority Values.
Definition: Priority.hh:85
std::set< Appender * > AppenderSet
Definition: Appender.hh:147
Implement this interface for your own strategies for printing log statements.
Definition: Appender.hh:33
Definition: PThreads.hh:29
const std::string & getName() const
Get the name of this appender.
Definition: Appender.hh:106