# Synapse logging configuration. # # Named .yaml and NOT .config, deliberately. LibrePortal's config loader does # find "$containers_dir" -maxdepth 3 -type f -name '*.config' # and `source`s every hit as bash. This file lands at # /data/log.yaml — exactly depth 3 — so calling it log.config made every # single libreportal command source a YAML document as a shell script, spewing # "command not found" for each line and slowing the CLI to a crawl. # Only `resources/` is pruned from that scan; `data/` is not. # # Logs go to stdout only, so `docker logs matrix-synapse` and the LibrePortal # log viewer both see them, and nothing accumulates inside the container that # the host does not rotate. version: 1 formatters: precise: format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s' handlers: console: class: logging.StreamHandler formatter: precise loggers: synapse.storage.SQL: # Set to INFO to log every database query — useful when chasing a slow # server, far too noisy for normal running. level: WARNING # Very chatty at INFO, and rarely what you are looking for. synapse.access.http.8008: level: WARNING root: level: INFO handlers: [console] disable_existing_loggers: false