matrix-synapse/templates/log.yaml.j2
author Luke Hoersten <luke@hoersten.org>
Fri, 03 Jul 2020 09:38:16 -0500
changeset 110 83833f68dc36
parent 39 90b1b7c4be70
permissions -rw-r--r--
Added jellyfin role. Forkbombs my computer though.


version: 1

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

filters:
  context:
    (): synapse.util.logcontext.LoggingContextFilter
    request: ""

handlers:
  file:
    class: logging.handlers.WatchedFileHandler
    formatter: precise
    filename: /var/log/matrix-synapse/homeserver.log
    filters: [context]
    level: ERROR
    encoding: utf8
  console:
    class: logging.StreamHandler
    formatter: precise
    level: ERROR
  journal:
    class: systemd.journal.JournalHandler
    formatter: journal_fmt
    filters: [context]
    SYSLOG_IDENTIFIER: synapse

loggers:
    twisted:
        level: ERROR

    synapse:
        level: ERROR

    # the following levels are more verbose than most users want
    # set them to INFO if you need more logging
    synapse.metrics:
        level: ERROR

    synapse.http.federation.well_known_resolver:
        level: ERROR

    synapse.storage.TIME:
        level: ERROR

    synapse.http.matrixfederationclient:
        level: ERROR

root:
    level: ERROR
    handlers: [journal]