equal
deleted
inserted
replaced
35 SymbianLogger::writeLog(tmpStr); \ |
35 SymbianLogger::writeLog(tmpStr); \ |
36 } |
36 } |
37 #define INSTALL_MESSAGE_HANDLER |
37 #define INSTALL_MESSAGE_HANDLER |
38 #else // COMBINE_WITH_ENGINE_LOGGER |
38 #else // COMBINE_WITH_ENGINE_LOGGER |
39 |
39 |
40 #define WRITELOG(msg) qDebug()<<KLogMarker<<msg |
40 //enable 3.0 log a new line |
|
41 #define WRITELOG(msg) qDebug()<<KLogMarker<<msg<<"\r\n" |
41 |
42 |
42 #ifdef TRACE_TO_FILE |
43 #ifdef TRACE_TO_FILE |
43 #define INSTALL_MESSAGE_HANDLER FileLogger __fileLogger(QString(KTraceOutputFile), FILTER_BY_LOGMARKER) |
44 #define INSTALL_MESSAGE_HANDLER FileLogger __fileLogger(QString(KTraceOutputFile), FILTER_BY_LOGMARKER) |
44 #else // TRACE_TO_FILE |
45 #else // TRACE_TO_FILE |
45 #define INSTALL_MESSAGE_HANDLER |
46 #define INSTALL_MESSAGE_HANDLER |
143 void uninstallMessageHandler(); |
144 void uninstallMessageHandler(); |
144 static void handleMessage( QtMsgType aType, const char* aMsg ); |
145 static void handleMessage( QtMsgType aType, const char* aMsg ); |
145 }; |
146 }; |
146 |
147 |
147 // ============================================================================ |
148 // ============================================================================ |
|
149 // Create log dir |
|
150 // ============================================================================ |
|
151 IRQLOGGER_DLL_EXPORT void installLogDir(); |
|
152 |
|
153 // ============================================================================ |
148 // SIGNAL/SLOT CONNECTION CHECKER |
154 // SIGNAL/SLOT CONNECTION CHECKER |
149 // ============================================================================ |
155 // ============================================================================ |
150 IRQLOGGER_DLL_EXPORT bool connectAndTest( const QObject* aSender, const char* aSignal, |
156 IRQLOGGER_DLL_EXPORT bool connectAndTest( const QObject* aSender, const char* aSignal, |
151 const QObject* aReceiver, const char* aMember, |
157 const QObject* aReceiver, const char* aMember, |
152 Qt::ConnectionType aType = Qt::AutoConnection ); |
158 Qt::ConnectionType aType = Qt::AutoConnection ); |