17 #include "boost/bind.hpp"
18 #include "boost/shared_ptr.hpp"
23 #include <QTextStream>
41 qRegisterMetaType<Message>(
"Message");
55 qInstallMessageHandler(0);
60 bool ReporterThread::initializeLogFile(
LogFile file)
63 if (mInitializedFiles.contains(filename))
66 mInitializedFiles << filename;
81 mLogPath = absoluteLoggingFolderPath;
83 QFileInfo(mLogPath+
"/").absoluteDir().mkpath(
".");
96 this->sendToCout(msg);
98 QMetaObject::invokeMethod(
this,
"processMessage",
103 void ReporterThread::onMessageEmitted(
Message msg)
106 this->sendToFile(msg);
109 void ReporterThread::sendToFile(
Message message)
118 this->initializeLogFile(channelLog);
120 channelLog.write(message);
121 allLog.write(message);
124 void ReporterThread::sendToCout(
Message message)