amnezia-client/service/server/log.h
2020-12-26 15:03:51 +03:00

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