Classified ads
/tmp/classified_ads/log.h
Go to the documentation of this file.
1 #ifndef CLASSIFIED_ADS_LOG_H
2 #define CLASSIFIED_ADS_LOG_H
3 #include <stdio.h>
4 #include <QDateTime>
5 #ifdef DEBUG
6 #define LOG_STR(a) qDebug() << QDateTime::currentDateTime().toString("hh:mm:ss") << a
7 #define LOG_STR2(a,b) { QString str ; qDebug() << QDateTime::currentDateTime().toString("hh:mm:ss") << str.sprintf(a,b) ; }
8 #define QLOG_STR(a) qDebug() << QDateTime::currentDateTime().toString("hh:mm:ss") << a
9 #else
10 #define LOG_STR(a)
11 #define LOG_STR2(a,b)
12 #define QLOG_STR(a)
13 #endif
14 #endif