1 |
c137512e
|
Oto Šťáva
|
#ifndef QSLOGDISABLEFORTHISFILE_H
|
2 |
|
|
#define QSLOGDISABLEFORTHISFILE_H
|
3 |
|
|
|
4 |
|
|
#include <QtDebug>
|
5 |
|
|
// When included AFTER QsLog.h, this file will disable logging in that C++ file. When included
|
6 |
|
|
// before, it will lead to compiler warnings or errors about macro redefinitions.
|
7 |
|
|
|
8 |
|
|
#undef QLOG_TRACE
|
9 |
|
|
#undef QLOG_DEBUG
|
10 |
|
|
#undef QLOG_INFO
|
11 |
|
|
#undef QLOG_WARN
|
12 |
|
|
#undef QLOG_ERROR
|
13 |
|
|
#undef QLOG_FATAL
|
14 |
|
|
|
15 |
|
|
#define QLOG_TRACE() if (1) {} else qDebug()
|
16 |
|
|
#define QLOG_DEBUG() if (1) {} else qDebug()
|
17 |
|
|
#define QLOG_INFO() if (1) {} else qDebug()
|
18 |
|
|
#define QLOG_WARN() if (1) {} else qDebug()
|
19 |
|
|
#define QLOG_ERROR() if (1) {} else qDebug()
|
20 |
|
|
#define QLOG_FATAL() if (1) {} else qDebug()
|
21 |
|
|
|
22 |
|
|
#endif // QSLOGDISABLEFORTHISFILE_H
|