diff --git a/loghandler.cpp b/loghandler.cpp index 4e8fa04..f879085 100644 --- a/loghandler.cpp +++ b/loghandler.cpp @@ -55,7 +55,7 @@ void messageHandler(QtMsgType type, const QMessageLogContext &context, const QSt int index = fileName.lastIndexOf(QDir::separator()); fileName = fileName.mid(index + 1); QString msgOut = QString("%1 - [%2] (%3:%4, %5): %6") - .arg(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss")).arg(level) + .arg(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss.zzz")).arg(level) .arg(fileName).arg(context.line).arg(context.function).arg(msg); std::cout << msgOut.toLocal8Bit().constData() << std::endl; QTextStream in(&g_file);