14#ifndef ABSTRACTSTRINGAPPENDER_H
15#define ABSTRACTSTRINGAPPENDER_H
18#include "CuteLogger_global.h"
19#include <AbstractAppender.h>
22#include <QReadWriteLock>
30 virtual QString
format()
const;
37 const char* function,
const QString& category,
const QString& message)
const;
40 static QByteArray qCleanupFuncinfo(
const char*);
43 mutable QReadWriteLock m_formatLock;
AbstractAppender()
Constructs a AbstractAppender object.
Definition AbstractAppender.cpp:50
AbstractStringAppender()
Constructs a new string appender object.
Definition AbstractStringAppender.cpp:51
static QString stripFunctionName(const char *)
Strips the long function signature (as added by Q_FUNC_INFO macro)
Definition AbstractStringAppender.cpp:129
virtual QString format() const
Returns the current log format string.
Definition AbstractStringAppender.cpp:63
void setFormat(const QString &)
Sets the logging format for writing strings to the log target with this appender.
Definition AbstractStringAppender.cpp:116
QString formattedString(const QDateTime &timeStamp, Logger::LogLevel logLevel, const char *file, int line, const char *function, const QString &category, const QString &message) const
Returns the string to record to the logging target, formatted according to the format().
Definition AbstractStringAppender.cpp:308
LogLevel
Describes the possible severity levels of the log records.
Definition Logger.h:101