From 58ed354c39f6e6ff9abf0afe8ea422b7c15c657a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E6=9C=8B=E7=A8=8B?= Date: Tue, 22 Nov 2022 11:56:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=AE=BE=E7=BD=AE=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 镜像中打印日志不够详细 Log: 设置日志格式 Influence: 无 Task: https://pms.uniontech.com/task-view-124695.html Change-Id: I287704241f9f1a19d2ed81a41dc22149727ae58d --- frame/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frame/main.cpp b/frame/main.cpp index 8bf7c4583..16bc9890b 100644 --- a/frame/main.cpp +++ b/frame/main.cpp @@ -195,6 +195,7 @@ int main(int argc, char *argv[]) QAccessible::installFactory(accessibleFactory); // 设置日志输出到控制台以及文件 + DLogManager::setLogFormat("%{time}{yyyyMMdd.HH:mm:ss.zzz}[%{type:1}][%{function:-35} %{line:-4}] %{message}\n"); DLogManager::registerConsoleAppender(); DLogManager::registerFileAppender();