summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨威 <[email protected]>2020-09-09 12:00:40 +0800
committer杨威 <[email protected]>2020-09-21 22:22:32 +0800
commit068d0be32a85e005fce400985d2ca02cced7120d (patch)
treedb1d7e5e8ae2b175606b7e03764a8cb53aa27161
parent2306bbce94a42164fcc645ec59174785de83a0f5 (diff)
更新默认sapp_log.conf内容,并将该文件加入至install流程
-rw-r--r--CMakeLists.txt1
-rw-r--r--bin/etc/sapp_log.conf7
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