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);