# Synapse Logging Configuration

version: 1

formatters:
  precise:
    format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'

handlers:
  console:
    class: logging.StreamHandler
    formatter: precise
    stream: 'ext://sys.stdout'

  file:
    class: logging.handlers.TimedRotatingFileHandler
    formatter: precise
    filename: /data/logs/homeserver.log
    when: midnight
    backupCount: 7
    encoding: utf8

loggers:
  synapse.storage.SQL:
    level: WARNING

  synapse.access.http.8008:
    level: WARNING

root:
  level: INFO
  handlers: [console, file]

disable_existing_loggers: false
