summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨威 <[email protected]>2020-09-08 19:26:37 +0800
committer杨威 <[email protected]>2020-09-21 22:22:32 +0800
commit2306bbce94a42164fcc645ec59174785de83a0f5 (patch)
tree46330ba6f74db0ed6b2270acecf72fce72f2dba0
parenta460cd48337fb014c5507f93005b5874815cc75f (diff)
UPDATE:默认配置文件增加log_conf_file
-rw-r--r--bin/etc/sapp.toml1
-rw-r--r--bin/etc/sapp_log.conf8
2 files changed, 9 insertions, 0 deletions
diff --git a/bin/etc/sapp.toml b/bin/etc/sapp.toml
index a7ad6f4..1023c98 100644
--- a/bin/etc/sapp.toml
+++ b/bin/etc/sapp.toml
@@ -124,6 +124,7 @@ dictator_enable=1
### note, if "file_truncate_open_enabled=1", file will be truncated, otherwise open the file for appending.
file_truncate_enabled = 1
log_file_name = "fs2_sysinfo.log"
+ log_conf_name = "etc/sapp_log.conf"
[profiling.log.remote]
enabled=1
diff --git a/bin/etc/sapp_log.conf b/bin/etc/sapp_log.conf
new file mode 100644
index 0000000..3f75a03
--- /dev/null
+++ b/bin/etc/sapp_log.conf
@@ -0,0 +1,8 @@
+[global]
+default format = "%d(%c), %V, %F, %U, %m%n"
+[levels]
+DEBUG=10
+INFO=20
+FATAL=30
+[rules]
+*.* "./log/runtimelog.%d(%F)"