#ifndef LOGGER_H #define LOGGER_H #include #include #include #include class Logger { private: static QFile* _logFile; static QHash _logTitles; public: Logger(const QString& fileName = "./DefaultHatefLogFile.log"); ~Logger(); static void logReceivedData(const QByteArray& msg, const QHostAddress& addr, quint16 port); static void logReceivedData(const QString& msg); static void makeStartingLine(); static void clearLog(); static void messageOutput(QtMsgType type, const QMessageLogContext& context, const QString& msg); }; #endif //LOGGER_H