diff options
| author | Darkelarious <github@333networks.com> | 2025-03-08 15:11:53 +0100 |
|---|---|---|
| committer | Darkelarious <github@333networks.com> | 2025-03-08 15:11:53 +0100 |
| commit | 74ff50c5ca343b5829287f6e7ee2b916aa29720e (patch) | |
| tree | 00011aba29c389b17e9a1c538e552fbe1c6e131e /Logger/logger.h | |
| parent | 920fa82d1e184732205fcbbd96b2143f9503e8e3 (diff) | |
| download | Masterserver-Qt5-74ff50c5ca343b5829287f6e7ee2b916aa29720e.tar.gz Masterserver-Qt5-74ff50c5ca343b5829287f6e7ee2b916aa29720e.zip | |
reorganise files
Sort out code/source files that were mixed with other repository files. No new functional changes.
Diffstat (limited to 'Logger/logger.h')
| -rw-r--r-- | Logger/logger.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/Logger/logger.h b/Logger/logger.h deleted file mode 100644 index 9880c44..0000000 --- a/Logger/logger.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef LOGGER_H -#define LOGGER_H - -#include <QDir> -#include <QFile> -#include <QDateTime> -#include <QTextStream> - -#include "Settings/settingstructure.h" -#include "Core/version.h" -#include "logprimitive.h" - -class Logger -{ -public: - Logger(); - bool init(const QString &applicationPath, - const SettingStructure &settings); - void stop(); - void logEvent(const QString &messageType, - const QString &message); - -private: - // path variables - const QString _logDirectory = "../log"; - const QString _logLabel = "MasterServer-" + SHORT_VER; - QString _logPath = ""; - - // local variables - int _cyclePeriod; - QString _logFileName; - QString _suppressLog; - QString _suppressDisplay; - - // file i/o - QFile _logFile; - -private: - bool cycleLogFile(); - bool openLogFile(); - void closeLogFile(); - bool writeLogFile(const QString message); - -}; - -#endif // LOGGER_H |
