36 #ifndef LOG4CPLUS_CLFSAPPENDER_H
37 #define LOG4CPLUS_CLFSAPPENDER_H
41 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
48 #if defined (LOG4CPLUS_CLFSAPPENDER_BUILD_DLL)
49 # if defined (INSIDE_LOG4CPLUS_CLFSAPPENDER)
50 # define LOG4CPLUS_CLFSAPPENDER_EXPORT __declspec(dllexport)
52 # define LOG4CPLUS_CLFSAPPENDER_EXPORT __declspec(dllimport)
55 # define LOG4CPLUS_CLFSAPPENDER_EXPORT
68 unsigned long buffersize);
80 unsigned long buffersize);
Extend this class for implementing your own strategies for printing log statements.
static void registerAppender()
CLFSAppender(tstring const &logname, unsigned long logsize, unsigned long buffersize)
virtual void append(spi::InternalLoggingEvent const &)
Subclasses of Appender should implement this method to perform actual logging.
virtual void close()
Release any resources allocated within the appender such as file handles, network connections,...
void init(tstring const &logname, unsigned long logsize, unsigned long buffersize)
CLFSAppender(helpers::Properties const &)
The internal representation of logging events.
#define LOG4CPLUS_CLFSAPPENDER_EXPORT
std::basic_string< tchar > tstring
helpers::SharedObjectPtr< CLFSAppender > CLFSAppenderPtr