23 lines
437 B
C++
23 lines
437 B
C++
#ifndef LOG_H
|
|
#define LOG_H
|
|
|
|
#include <QDebug>
|
|
#include <QFile>
|
|
#include <QString>
|
|
#include <QTextStream>
|
|
|
|
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
|