#ifndef LOG_H #define LOG_H #include #include #include #include class Log { public: static bool initialize(); static QString serviceLogFileNamePath(); private: friend void debugMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString& msg); static QFile m_file; static QString m_logFileName; static QTextStream m_textStream; }; #endif // LOG_H