23 #ifndef _LOG4CPLUS_FILE_APPENDER_HEADER_
24 #define _LOG4CPLUS_FILE_APPENDER_HEADER_
26 #include "dcmtk/oflog/config.h"
33 # define LOG4CPLUS_OPEN_MODE_TYPE LOG4CPLUS_FSTREAM_NAMESPACE::ios::open_mode
35 # define LOG4CPLUS_OPEN_MODE_TYPE LOG4CPLUS_FSTREAM_NAMESPACE::ios::openmode
68 LOG4CPLUS_OPEN_MODE_TYPE mode = LOG4CPLUS_FSTREAM_NAMESPACE::ios::trunc,
69 bool immediateFlush =
true);
72 LOG4CPLUS_OPEN_MODE_TYPE mode = LOG4CPLUS_FSTREAM_NAMESPACE::ios::trunc);
83 void open(LOG4CPLUS_OPEN_MODE_TYPE mode);
110 log4cplus::tofstream out;
117 LOG4CPLUS_OPEN_MODE_TYPE mode);
150 long maxFileSize = 10*1024*1024,
151 int maxBackupIndex = 1,
152 bool immediateFlush =
true);
167 void init(
long maxFileSize,
int maxBackupIndex);
172 enum DailyRollingFileSchedule { MONTHLY, WEEKLY, DAILY,
173 TWICE_DAILY, HOURLY, MINUTELY};
200 DailyRollingFileSchedule schedule = DAILY,
201 bool immediateFlush =
true,
202 int maxBackupIndex = 10);
209 virtual void close();
218 DailyRollingFileSchedule schedule;
224 void init(DailyRollingFileSchedule schedule);
229 #endif // _LOG4CPLUS_FILE_APPENDER_HEADER_
The internal representation of logging events.
bool immediateFlush
Immediate flush means that the underlying writer or output stream will be flushed at the end of each ...
Appends log events to a file.
RollingFileAppender extends FileAppender to backup the log files when they reach a certain size...
This class represents a Epoch time with microsecond accuracy.
int reopenDelay
When any append operation fails, reopenDelay says for how many seconds the next attempt to re-open th...
DailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user ch...
a simple string class that implements a subset of std::string.
Extend this class for implementing your own strategies for printing log statements.