From 068d0be32a85e005fce400985d2ca02cced7120d Mon Sep 17 00:00:00 2001 From: 杨威 Date: Wed, 9 Sep 2020 12:00:40 +0800 Subject: 更新默认sapp_log.conf内容,并将该文件加入至install流程 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 + bin/etc/sapp_log.conf | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d6fae9b..7b983a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,6 +202,7 @@ install(FILES bin/etc/gdev_block.conf DESTINATION etc COMPONENT PROFILE) install(FILES bin/plug/conflist.inf DESTINATION plug COMPONENT PROFILE) install(FILES bin/etc/send_gdev.conf DESTINATION etc COMPONENT PROFILE) install(FILES bin/etc/send_route.conf DESTINATION etc COMPONENT PROFILE) +install(FILES bin/etc/sapp_log.conf DESTINATION etc COMPONENT PROFILE) if(NOT ENABLE_STATIC_LINK) diff --git a/bin/etc/sapp_log.conf b/bin/etc/sapp_log.conf index 3f75a03..b7b6802 100644 --- a/bin/etc/sapp_log.conf +++ b/bin/etc/sapp_log.conf @@ -1,8 +1,11 @@ [global] -default format = "%d(%c), %V, %F, %U, %m%n" +default format = "%d(%c), %V, %U, %m%n" [levels] DEBUG=10 INFO=20 FATAL=30 +[formats] +other = "%d(%c), %V, %F, %U, %m%n" [rules] -*.* "./log/runtimelog.%d(%F)" +__log_runtimelog.info "./log/runtimelog.%d(%F)" +!.* "./log/%c.%d(%F)"; other -- cgit v1.2.3