18#include "CuteLogger_global.h"
19#include <AbstractStringAppender.h>
35 bool flushOnWrite()
const;
44 const char* function,
const QString& category,
const QString& message);
51 QTextStream m_logStream;
52 mutable QMutex m_logFileMutex;
virtual void append(const QDateTime &timeStamp, Logger::LogLevel logLevel, const char *file, int line, const char *function, const QString &category, const QString &message)=0
Writes the log record to the logger instance.
AbstractStringAppender()
Constructs a new string appender object.
Definition AbstractStringAppender.cpp:51
QString fileName() const
Returns the name set by setFileName() or to the FileAppender constructor.
Definition FileAppender.cpp:45
void setFlushOnWrite(bool)
Allows FileAppender to flush file immediately after writing a log record.
Definition FileAppender.cpp:83
FileAppender(const QString &fileName=QString())
Constructs the new file appender assigned to file with the given name.
Definition FileAppender.cpp:28
bool flush()
Force-flush any remaining buffers to file system. Returns true if successful, otherwise returns false...
Definition FileAppender.cpp:90
void setFileName(const QString &)
Sets the name of the file. The name can have no path, a relative path, or an absolute path.
Definition FileAppender.cpp:56
LogLevel
Describes the possible severity levels of the log records.
Definition Logger.h:101