更新toroad_log.conf
This commit is contained in:
@@ -38,6 +38,13 @@
|
||||
src: "{{ role_path }}/templates/toroad_tmpfile.conf.j2"
|
||||
dest: /usr/lib/tmpfiles.d/toroad_tmpfile.conf
|
||||
tags: template
|
||||
|
||||
- name: Template the toroad_log.conf
|
||||
template:
|
||||
src: "{{ role_path }}/templates/toroad_log.conf.j2"
|
||||
dest: /opt/tsg/wannat/toroad/etc/toroad_log.conf
|
||||
tags: template
|
||||
|
||||
|
||||
- name: "Template the toroad.service"
|
||||
template:
|
||||
|
||||
@@ -11,10 +11,10 @@ lru_timeout=60
|
||||
|
||||
[runtime_log]
|
||||
log_level=30
|
||||
log_file=./toroad_log/toroad.log
|
||||
log_file=./log/toroad.log
|
||||
|
||||
[field_stat2]
|
||||
Fs2_log_local_dir_path=./toroad_log
|
||||
Fs2_log_local_dir_path=./log
|
||||
Fs2_interval=3
|
||||
Fs2_server_ip=127.0.0.1
|
||||
Fs2_server_port=8125
|
||||
|
||||
11
roles/toroad/templates/toroad_log.conf.j2
Normal file
11
roles/toroad/templates/toroad_log.conf.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
[global]
|
||||
default format = "%d(%c), %V, %F, %U, %m%n"
|
||||
[levels]
|
||||
DEBUG=10
|
||||
INFO=20
|
||||
FATAL=30
|
||||
[rules]
|
||||
__log_toroad_log.DEBUG "./log/toroad.log.%d(%F)"
|
||||
#__log_toroad_log.INFO "./log/toroad.log.%d(%F)"
|
||||
#__log_toroad_log.FATAL "./log/toroad.log.%d(%F)"
|
||||
__log_maat_log.INFO "./log/toroad_maat.log.%d(%F)"
|
||||
Reference in New Issue
Block a user