Change logging behaviour to only stdout with configurable verbosity (default: info)

This commit is contained in:
Björn Marten 2020-01-10 12:40:55 +01:00
parent 9892eac789
commit 3a80616185

View File

@ -46,6 +46,9 @@ matrix_appservice_webhooks_homeserver_token: ''
matrix_appservice_webhooks_id_token: '' matrix_appservice_webhooks_id_token: ''
matrix_appservice_webhooks_api_secret: '' matrix_appservice_webhooks_api_secret: ''
# Logging information (error, warn, info, verbose, debug is availabe) default is: info
matrix_appservice_webhooks_log_level: 'info'
matrix_appservice_webhooks_configuration_yaml: | matrix_appservice_webhooks_configuration_yaml: |
# Configuration specific to the application service. All fields (unless otherwise marked) are required. # Configuration specific to the application service. All fields (unless otherwise marked) are required.
@ -79,9 +82,9 @@ matrix_appservice_webhooks_configuration_yaml: |
logging: logging:
file: data/webhook.log file: data/webhook.log
console: true console: true
consoleLevel: info consoleLevel: {{ matrix_appservice_webhooks_log_level }}
fileLevel: verbose fileLevel: verbose
writeFiles: true writeFiles: false
rotate: rotate:
size: 52428800 # bytes, default is 50mb size: 52428800 # bytes, default is 50mb
count: 5 count: 5