添加zlog模板
This commit is contained in:
@@ -18,6 +18,11 @@
|
||||
src: "{{ role_path }}/templates/cert_store.ini.j2"
|
||||
dest: /opt/tsg/certstore/conf/cert_store.ini
|
||||
|
||||
- name: template certstore zlog file
|
||||
template:
|
||||
src: "{{ role_path }}/templates/zlog.conf.j2"
|
||||
dest: /opt/tsg/certstore/conf/zlog.conf
|
||||
|
||||
- name: "start certstore"
|
||||
systemd:
|
||||
name: certstore.service
|
||||
|
||||
10
roles/certstore/templates/zlog.conf.j2
Normal file
10
roles/certstore/templates/zlog.conf.j2
Normal file
@@ -0,0 +1,10 @@
|
||||
[global]
|
||||
default format = "%d(%c), %V, %F, %U, %m%n"
|
||||
[levels]
|
||||
DEBUG=10
|
||||
INFO=20
|
||||
FATAL=30
|
||||
[rules]
|
||||
*.fatal "./logs/error.log.%d(%F)";
|
||||
*.{{ certstore_log_level }} "./logs/certstore.log.%d(%F)"
|
||||
|
||||
Reference in New Issue
Block a user