app-sketch-global更新
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@
|
||||
yum:
|
||||
name:
|
||||
- /tmp/ansible_deploy/emqx-centos7-v4.1.2.x86_64.rpm
|
||||
- /tmp/ansible_deploy/app-sketch-global-1.0.2.20200918.c702d02-1.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/app-sketch-global-1.0.2.20200918.ab44d17-1.el7.x86_64.rpm
|
||||
state: present
|
||||
|
||||
- name: "template the app_sketch_global.conf"
|
||||
@@ -15,6 +15,11 @@
|
||||
src: "{{ role_path }}/templates/app_sketch_global.conf.j2"
|
||||
dest: /opt/tsg/app-sketch-global/conf/app_sketch_global.conf
|
||||
|
||||
- name: "template the zlog.conf"
|
||||
template:
|
||||
src: "{{ role_path }}/templates/zlog.conf.j2"
|
||||
dest: /opt/tsg/app-sketch-global/conf/zlog.conf
|
||||
|
||||
- name: "Start emqx"
|
||||
systemd:
|
||||
name: emqx.service
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
[SYSTEM]
|
||||
#1:print on screen, 0:don't
|
||||
DEBUG_SWITCH = 1
|
||||
#10:DEBUG, 20:INFO, 30:FATAL
|
||||
RUN_LOG_LEVEL = {{ app_sketch_global_log_level }}
|
||||
RUN_LOG_PATH = ./logs
|
||||
RUN_LOG_PATH = "conf/zlog.conf"
|
||||
|
||||
[breakpad]
|
||||
disable_coredump=0
|
||||
enable_breakpad=1
|
||||
breakpad_minidump_dir=/tmp/app-sketch-global/crashreport
|
||||
enable_breakpad_upload=0
|
||||
breakpad_upload_url=http://127.0.0.1/
|
||||
|
||||
[CONFIG]
|
||||
#Number of running threads
|
||||
|
||||
12
roles/app_global/templates/zlog.conf.j2
Normal file
12
roles/app_global/templates/zlog.conf.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
[global]
|
||||
default format = "%d(%c), %V, %F, %U, %m%n"
|
||||
[levels]
|
||||
DEBUG=10
|
||||
INFO=20
|
||||
FATAL=30
|
||||
[rules]
|
||||
*.fatal "./logs/error.log.%d(%F)";
|
||||
*.{{ app_sketch_global_log_level }} "./logs/app_sketch_global.log.%d(%F)"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user