24 #ifndef LOG4CPLUS_FILE_APPENDER_HEADER_ 25 #define LOG4CPLUS_FILE_APPENDER_HEADER_ 29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE) 120 virtual void close();
124 virtual std::locale imbue(std::locale
const& loc);
127 virtual std::locale getloc ()
const;
132 std::ios_base::openmode mode = std::ios_base::trunc,
133 bool immediateFlush =
true,
134 bool createDirs =
false);
136 std::ios_base::openmode mode = std::ios_base::trunc);
142 virtual void open(std::ios_base::openmode mode);
178 std::unique_ptr<log4cplus::tchar[]>
buffer;
205 std::ios_base::openmode mode = std::ios_base::trunc,
206 bool immediateFlush =
true,
207 bool createDirs =
false);
209 std::ios_base::openmode mode = std::ios_base::trunc);
246 long maxFileSize = 10*1024*1024,
247 int maxBackupIndex = 1,
248 bool immediateFlush =
true,
249 bool createDirs =
false);
257 void rollover(
bool alreadyLocked =
false);
316 bool immediateFlush =
true,
317 int maxBackupIndex = 10,
318 bool createDirs =
false,
319 bool rollOnClose =
true,
327 virtual void close();
331 void rollover(
bool alreadyLocked =
false);
391 bool cleanHistoryOnStart =
false,
392 bool immediateFlush =
true,
393 bool createDirs =
false,
394 bool rollOnClose =
true);
402 void open(std::ios_base::openmode mode);
404 void rollover(
bool alreadyLocked =
false);
406 helpers::Time::duration getRolloverPeriodDuration()
const;
428 #endif // LOG4CPLUS_FILE_APPENDER_HEADER_
log4cplus::helpers::Time nextRolloverTime
The internal representation of logging events.
helpers::SharedObjectPtr< FileAppender > SharedFileAppenderPtr
DailyRollingFileSchedule schedule
Appends log events to a file.
#define LOG4CPLUS_TEXT(STRING)
helpers::SharedObjectPtr< TimeBasedRollingFileAppender > SharedTimeBasedRollingFileAppenderPtr
helpers::SharedObjectPtr< DailyRollingFileAppender > SharedDailyRollingFileAppenderPtr
RollingFileAppender extends FileAppender to backup the log files when they reach a certain size.
Base class for Appenders writing log events to a file.
log4cplus::tstring filename
#define LOG4CPLUS_PRIVATE
helpers::SharedObjectPtr< RollingFileAppender > SharedRollingFileAppenderPtr
log4cplus::tstring localeName
chrono::time_point< Clock, Duration > Time
int reopenDelay
When any append operation fails, reopenDelay says for how many seconds the next attempt to re-open th...
log4cplus::tstring scheduledFilename
DailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user ch...
log4cplus::helpers::Time lastHeartBeat
TimeBasedRollingFileAppender extends FileAppenderBase so that the underlying file is rolled over at a...
bool createDirs
When this variable is true, FileAppender will try to create missing directories in path leading to lo...
std::basic_string< tchar > tstring
log4cplus::tstring datePattern
tstring scheduledFilename
log4cplus::tstring lockFileName
std::unique_ptr< log4cplus::tchar[]> buffer
log4cplus::helpers::Time reopen_time
std::basic_ofstream< tchar > tofstream
log4cplus::helpers::Time nextRolloverTime
bool immediateFlush
Immediate flush means that the underlying writer or output stream will be flushed at the end of each ...
Extend this class for implementing your own strategies for printing log statements.
std::ios_base::openmode fileOpenMode
DailyRollingFileSchedule schedule