5 #include <QCoreApplication>
10 #include "parameters.h"
16 typedef enum {INFO, ERROR, WARNING } TypeLog;
35 void write(
const QString text);
54 static Log* _instance;
70 QString typeLog2String(TypeLog type);
static Log & instance(TypeLog type=INFO)
Log::instance. Return the instance of logger.
Definition: log.cpp:19
void write(const QString text)
Log::write. Write log message in file.
Definition: log.cpp:35
Log()
Log::Log. Log is a singleton.
Definition: log.cpp:8
friend Log & operator<<(Log &logger, const QString &text)
operator << for log writing
Definition: log.h:48
The Log class for Simple management of log.
Definition: log.h:21