#ifndef LOGGER_H #define LOGGER_H #include #include #include #include #include class Logger { public: Logger(QString appDir, QString logFileName); ~Logger(); void writeString(QString strToWrite); void writeBytes(QByteArray arrToWrite); private: std::unique_ptr myLogFile; std::unique_ptr logStream; QMutex mutex; //mutex for control writes to the logs }; #endif // LOGGER_H