From d504f9ce33dd6f29f7d6b1579ddecac7658e47c4 Mon Sep 17 00:00:00 2001 From: tianzhendong <1203886034@qq.com> Date: Tue, 29 Oct 2024 21:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E7=9A=84=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=AF=AB=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- loghandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);