chore: 设置日志格式

镜像中打印日志不够详细

Log: 设置日志格式
Influence: 无
Task: https://pms.uniontech.com/task-view-124695.html
Change-Id: I287704241f9f1a19d2ed81a41dc22149727ae58d
This commit is contained in:
范朋程 2022-11-22 11:56:39 +08:00 committed by fanpengcheng
parent 06bab9d640
commit 58ed354c39

View File

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