xoxys.matrix/templates/opt/matrix/config/logging.config.j2
Robert Kaussow 66e6179aae
All checks were successful
continuous-integration/drone/push Build is passing
refactor: modernize homeserver and logger config
2022-02-10 09:42:26 +01:00

48 lines
1.2 KiB
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
version: 1
formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
filters:
context:
(): synapse.util.logcontext.LoggingContextFilter
request: ""
handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: precise
filename: {{ matrix_log_dir }}/homeserver.log
maxBytes: 104857600
backupCount: 10
filters: [context]
encoding: utf8
console:
class: logging.StreamHandler
formatter: precise
filters: [context]
loggers:
synapse:
level: {{ matrix_log_synapse_level }}
synapse.storage.SQL:
# beware: increasing this to DEBUG will make synapse log sensitive
# information such as access tokens.
level: {{ matrix_log_synapse_sql_level }}
{% if matrix_ldap_auth_enabled %}
ldap3:
level: {{ matrix_log_ldap_level }}
ldap_auth_provider:
level: {{ matrix_log_ldap_auth_level }}
{% endif %}
root:
level: {{ matrix_log_root_level }}
handlers: [file, console]