1 #ifndef ROLLINGFILEAPPENDER_H 2 #define ROLLINGFILEAPPENDER_H 6 #include <FileAppender.h> 50 void setDatePattern(
const QString& datePattern);
52 QString datePatternString()
const;
54 void setLogFilesLimit(
int limit);
55 int logFilesLimit()
const;
59 const char*
function,
const QString& category,
const QString& message);
63 void computeRollOverTime();
64 void computeFrequency();
65 void removeOldFiles();
66 void setDatePatternString(
const QString& datePatternString);
68 QString m_datePatternString;
71 QDateTime m_rollOverTime;
72 QString m_rollOverSuffix;
74 mutable QMutex m_rollingMutex;
77 #endif // ROLLINGFILEAPPENDER_H The RollingFileAppender class extends FileAppender so that the underlying file is rolled over at a us...
Definition: RollingFileAppender.h:22
Simple appender that writes the log records to the plain text file.
Definition: FileAppender.h:26
LogLevel
Describes the possible severity levels of the log records.
Definition: Logger.h:99
Definition: RollingFileAppender.h:40
Definition: RollingFileAppender.h:36
Definition: RollingFileAppender.h:38
Definition: RollingFileAppender.h:34
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.
Definition: FileAppender.cpp:85
DatePattern
Definition: RollingFileAppender.h:29