xoxys.matrix/templates/opt/matrix/config/logging.config.j2
Robert Kaussow 3597dc384b
All checks were successful
continuous-integration/drone/push Build is passing
add default log levels
2019-01-23 21:30:38 +01:00

49 lines
1.2 KiB
Django/Jinja

#jinja2: lstrip_blocks: True
# {{ ansible_managed }}
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
level: {{ matrix_log_file_level }}
console:
class: logging.StreamHandler
formatter: precise
filters: [context]
level: {{ matrix_log_console_level }}
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:
handlers: [file, console]