QtDataSync
4.2.0
A simple offline-first synchronisation framework, to synchronize data of Qt applications between devices
|
The Logger header. More...
#include <QtCore/qglobal.h>
#include <QtCore/qdebug.h>
#include <QtCore/qloggingcategory.h>
#include "QtDataSync/qtdatasync_global.h"
Go to the source code of this file.
Classes | |
class | QtDataSync::Logger |
A Helper class for simple and structured logging. More... | |
Namespaces | |
QtDataSync | |
The primary namespace of the QtDataSync library. | |
Macros | |
#define | QT_DATASYNC_LOG_BASE QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC) |
Internal macro. | |
#define | QT_DATASYNC_LOG_CAT QTDATASYNC_LOG->loggingCategory() |
Internal macro. | |
#define | logDebug() QT_DATASYNC_LOG_BASE.debug(QT_DATASYNC_LOG_CAT) |
A define to log like with qDebug, but using a logger. QTDATASYNC_LOG must be defined as a pointer to a logger. | |
#define | logInfo() QT_DATASYNC_LOG_BASE.info(QT_DATASYNC_LOG_CAT) |
A define to log like with qInfo, but using a logger. QTDATASYNC_LOG must be defined as a pointer to a logger. | |
#define | logWarning() QT_DATASYNC_LOG_BASE.warning(QT_DATASYNC_LOG_CAT) |
A define to log like with qWarning, but using a logger. QTDATASYNC_LOG must be defined as a pointer to a logger. | |
#define | logCritical() QT_DATASYNC_LOG_BASE.critical(QT_DATASYNC_LOG_CAT) |
A define to log like with qCritical, but using a logger. QTDATASYNC_LOG must be defined as a pointer to a logger. | |
#define | logFatal(error) QTDATASYNC_LOG->reportFatalError(error, QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC) |
A convenient define to log a fatal error, using QtDataSync::Logger::reportFatalError. QTDATASYNC_LOG must be defined as a pointer to a logger. | |
The Logger header.
Definition in file logger.h.