1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-20 21:02:26 +02:00

Add macro for special fine-grained logging

This commit is contained in:
Uwe L. Korn
2014-10-12 19:04:53 +01:00
parent 7b816db9ff
commit 9c243db83e
3 changed files with 15 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
#include <QDebug>
#include "DllMacro.h"
#include "config.h"
#define LOGDEBUG 1
#define LOGINFO 2
@@ -69,4 +70,12 @@ namespace Logger
#define tSqlLog Logger::TSqlLog
DLLEXPORT void tLogNotifyShutdown();
// Macro for messages that severely hurt performance but are helpful
// in some cases for better debugging.
#ifdef TOMAHAWK_FINEGRAINED_MESSAGES
#define FINEGRAINED_MSG(a) tDebug( LOGVERBOSE ) << a ;
#else
#define FINEGRAINED_MSG(a)
#endif
#endif // TOMAHAWK_LOGGER_H

View File

@@ -22,4 +22,6 @@
#cmakedefine LIBLASTFM_FOUND
#cmakedefine QCA2_FOUND
#cmakedefine TOMAHAWK_FINEGRAINED_MESSAGES
#endif // CONFIG_H_IN