# Synapse logging configuration. # # 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