18#ifndef ROLLINGFILEAPPENDER_H
19#define ROLLINGFILEAPPENDER_H
23#include <FileAppender.h>
52 DatePattern datePattern()
const;
53 void setDatePattern(DatePattern datePattern);
54 void setDatePattern(
const QString& datePattern);
56 QString datePatternString()
const;
58 void setLogFilesLimit(
int limit);
59 int logFilesLimit()
const;
61 void setLogSizeLimit(
int qint64);
62 qint64 logSizeLimit()
const;
66 const char* function,
const QString& category,
const QString& message);
70 void computeRollOverTime();
71 void computeFrequency();
72 void removeOldFiles();
73 void setDatePatternString(
const QString& datePatternString);
75 QString m_datePatternString;
76 DatePattern m_frequency;
78 QDateTime m_rollOverTime;
79 QString m_rollOverSuffix;
81 qint64 m_logSizeLimit;
82 mutable QMutex m_rollingMutex;
Simple appender that writes the log records to the plain text file.
Definition: FileAppender.h:28
virtual void append(const QDateTime &timeStamp, Logger::LogLevel logLevel, const char *file, int line, const char *function, const QString &category, const QString &message)
Write the log record to the file. \reimp
Definition: FileAppender.cpp:104
LogLevel
Describes the possible severity levels of the log records
Definition: Logger.h:83
The RollingFileAppender class extends FileAppender so that the underlying file is rolled over at a us...
Definition: RollingFileAppender.h:28
DatePattern
Definition: RollingFileAppender.h:35
@ WeeklyRollover
Definition: RollingFileAppender.h:45
@ HourlyRollover
Definition: RollingFileAppender.h:39
@ DailyRollover
Definition: RollingFileAppender.h:43
@ HalfDailyRollover
Definition: RollingFileAppender.h:41