diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-03 11:08:18 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-04 23:32:52 +0100 |
commit | 4d2ce949b3b41f8bf0af446fa20205ddd229e579 (patch) | |
tree | 01fa19471d9831b296bea5d7049f765e38b30bbb /rbutil/rbutilqt/logger/CuteLogger_global.h | |
parent | 335ec75d60bba82f23fc47b20f9390e0cba9c9c5 (diff) | |
download | rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.tar.gz rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.zip |
Use cutelogger for Rockbox Utility internal trace.
Change tracing from qDebug() to use cutelogger, which is available under the
LGPL2.1. This allows to automatically add filename and line number to the log,
and also provides multiple log levels.
Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
Diffstat (limited to 'rbutil/rbutilqt/logger/CuteLogger_global.h')
-rw-r--r-- | rbutil/rbutilqt/logger/CuteLogger_global.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/logger/CuteLogger_global.h b/rbutil/rbutilqt/logger/CuteLogger_global.h new file mode 100644 index 0000000000..43e74affdb --- /dev/null +++ b/rbutil/rbutilqt/logger/CuteLogger_global.h | |||
@@ -0,0 +1,12 @@ | |||
1 | #ifndef CUTELOGGER_GLOBAL_H | ||
2 | #define CUTELOGGER_GLOBAL_H | ||
3 | |||
4 | #include <QtCore/qglobal.h> | ||
5 | |||
6 | #if defined(CUTELOGGER_LIBRARY) | ||
7 | # define CUTELOGGERSHARED_EXPORT Q_DECL_EXPORT | ||
8 | #else | ||
9 | # define CUTELOGGERSHARED_EXPORT Q_DECL_IMPORT | ||
10 | #endif | ||
11 | |||
12 | #endif // CUTELOGGER_GLOBAL_H | ||