8#include <QCoreApplication>
10#include "stringcontainer.h"
13#define FILE_NAME_SUFFIX "_ddMMyyyy_hhmmss"
14#define FULL_FILE_PATH m_logDir + (QString)"/" + m_fileName + (QString)".json"
84 QList<QPair<QString, LogFile*>> m_allLogFiles;
87 bool m_logEnabled =
true;
The LogFile class logs progress as well as information about a process (e.g. Inport,...
Definition logfile.h:23
The LogManager class is a singleton which manages the logging process. It provides LogFiles that are ...
Definition logmanager.h:29
static LogManager & instance()
Returns the singleton instance of this class.
Definition logmanager.cpp:11
void toggleLog(bool useLog)
toggleLog is used to enable or disable loging (-> saving the log file to disk or not)
Definition logmanager.cpp:58
void deleteAllLogFiles()
deleteAllLogFiles Deletes all LogFiles. Every existing pointer is invalid now.
Definition logmanager.cpp:26
void setLogDirectory(QString logDir)
setLogDirectory changes the directory where the log file is printed to. It wont an artifical folder i...
Definition logmanager.cpp:63
void resetLog()
resetLog resets the current log and creates a new log
Definition logmanager.cpp:52
LogFile * createLogFile(QString name, bool isPlugin)
createLogFile Returns the pointer to an already existing LogFile or creates a new one if neccessary....
Definition logmanager.cpp:17
bool slot_updateLog()
update is called whenever a logfile changes. This will print the current log files.
Definition logmanager.cpp:68
QJsonDocument toJSON()
toQJSON Returns the current state of the log files in form of a QJsonObject
Definition logmanager.cpp:38