添加zlog模板

This commit is contained in:
fengweihao
2020-10-14 17:58:58 +08:00
committed by 付明卫
parent 88d6fda48f
commit f49bc21400
2 changed files with 15 additions and 0 deletions

View File

@@ -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

View 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)"