This commit is contained in:
Aditya Kulkarni
2018-11-20 14:51:40 -08:00
parent 1756c0b239
commit a8cbb3f6e6
4 changed files with 7 additions and 4 deletions

View File

@@ -11,6 +11,9 @@ Logger::Logger(QObject *parent, QString fileName) : QObject(parent) {
}
void Logger::write(const QString &value) {
if (!file)
return;
QString text = value;// + "";
text = QDateTime::currentDateTime().toString("dd.MM.yyyy hh:mm:ss ") + text;
QTextStream out(file);

View File

@@ -11,7 +11,7 @@ public:
~Logger();
private:
QFile *file;
QFile *file = nullptr;
bool m_showDate;
signals:

View File

@@ -1 +1 @@
#define APP_VERSION "0.4.0"
#define APP_VERSION "0.4.1"