10#include <QtCore/QLoggingCategory>
11#include <QtCore/QString>
40 , maxFileSize(4 * 1024 * 1024)
65 static void shutdown();
66 static bool isEnabled();
73 static void write(
Level level,
const QString &category,
const QString &message);
75 static void write(
Level level,
const QLoggingCategory &category,
const QString &message);
Application logging built on top of Qt's message handler: the usual qDebug()/qInfo()/qWarning()/qCrit...
Level
Level letters used in the output, in ascending severity.
#define QX_CORE_BEGIN_NAMESPACE
#define QX_CORE_END_NAMESPACE
QxLogger::Options options
qint64 maxFileSize
Rotate once the file grows past this many bytes; <= 0 disables rotation.
QString fileName
Log file path; empty disables file output.
int maxBackups
Number of rotated files kept, named after the log file with a numeric suffix.
Level level
Messages below this level are dropped.
bool toConsole
Also write to stderr, which is what development builds want.