 |
log4cplus
2.0.6
|
Go to the documentation of this file.
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_
helpers::SharedObjectPtr< DailyRollingFileAppender > SharedDailyRollingFileAppenderPtr
Base class for Appenders writing log events to a file.
helpers::SharedObjectPtr< TimeBasedRollingFileAppender > SharedTimeBasedRollingFileAppenderPtr
bool createDirs
When this variable is true, FileAppender will try to create missing directories in path leading to lo...
std::unique_ptr< log4cplus::tchar[]> buffer
std::basic_string< tchar > tstring
TimeBasedRollingFileAppender extends FileAppenderBase so that the underlying file is rolled over at a...
DailyRollingFileAppender extends FileAppender so that the underlying file is rolled over at a user ch...
#define LOG4CPLUS_TEXT(STRING)
log4cplus::tstring lockFileName
tstring scheduledFilename
std::ios_base::openmode fileOpenMode
Appends log events to a file.
log4cplus::tstring filename
log4cplus::helpers::Time nextRolloverTime
bool immediateFlush
Immediate flush means that the underlying writer or output stream will be flushed at the end of each ...
DailyRollingFileSchedule schedule
log4cplus::tstring datePattern
log4cplus::helpers::Time lastHeartBeat
log4cplus::tstring localeName
log4cplus::helpers::Time nextRolloverTime
The internal representation of logging events.
int reopenDelay
When any append operation fails, reopenDelay says for how many seconds the next attempt to re-open th...
log4cplus::helpers::Time reopen_time
log4cplus::tstring scheduledFilename
DailyRollingFileSchedule schedule
helpers::SharedObjectPtr< RollingFileAppender > SharedRollingFileAppenderPtr
chrono::time_point< Clock, Duration > Time
std::basic_ofstream< tchar > tofstream
#define LOG4CPLUS_PRIVATE
Extend this class for implementing your own strategies for printing log statements.
RollingFileAppender extends FileAppender to backup the log files when they reach a certain size.
helpers::SharedObjectPtr< FileAppender > SharedFileAppenderPtr