#include "Export.h"
#include "Helpers.h"
#include <QDateTime>
#include <QDebug>
#include <QObject>
#include <QTextStream>
#include <memory>
Go to the source code of this file.
|
#define | __QEVERCLOUD_LOG_BASE(component, level, message) |
|
#define | QEC_TRACE(component, message) __QEVERCLOUD_LOG_BASE(component, LogLevel::Trace, message) \ |
|
#define | QEC_DEBUG(component, message) __QEVERCLOUD_LOG_BASE(component, LogLevel::Debug, message) \ |
|
#define | QEC_INFO(component, message) __QEVERCLOUD_LOG_BASE(component, LogLevel::Info, message) \ |
|
#define | QEC_WARNING(component, message) __QEVERCLOUD_LOG_BASE(component, LogLevel::Warn, message) \ |
|
#define | QEC_ERROR(component, message) __QEVERCLOUD_LOG_BASE(component, LogLevel::Error, message) \ |
|
◆ __QEVERCLOUD_LOG_BASE
#define __QEVERCLOUD_LOG_BASE |
( |
|
component, |
|
|
|
level, |
|
|
|
message |
|
) |
| |
Value: { \
if (__qevercloudLogger->shouldLog(level, component)) \
{ \
QString msg; \
QDebug dbg(&msg); \
dbg.nospace(); \
dbg.noquote(); \
dbg << message; \
__qevercloudLogger->log( \
level, \
component, \
__FILE__, \
__LINE__, \
QDateTime::currentMSecsSinceEpoch(), \
msg); \
} \
} \
◆ QEC_DEBUG
◆ QEC_ERROR
◆ QEC_INFO
◆ QEC_TRACE
◆ QEC_WARNING