Skip to content

Instantly share code, notes, and snippets.

@DataBeaver
Created October 7, 2020 12:06
Show Gist options
  • Save DataBeaver/443bccea5e10fb99792b2c05e27c9081 to your computer and use it in GitHub Desktop.
Save DataBeaver/443bccea5e10fb99792b2c05e27c9081 to your computer and use it in GitHub Desktop.
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.logging.context.LoggingContextFilter
request: ""
handlers:
file:
class: logging.handlers.WatchedFileHandler
formatter: precise
filename: /var/log/matrix-synapse/homeserver.log
filters: [context]
level: DEBUG
encoding: utf8
console:
class: logging.StreamHandler
formatter: precise
filters: [context]
level: INFO
#journal:
# class: systemd.journal.JournalHandler
# formatter: journal_fmt
# filters: [context]
# SYSLOG_IDENTIFIER: synapse
loggers:
twisted:
level: WARN
synapse:
level: INFO
# the following levels are more verbose than most users want
# set them to INFO if you need more logging
synapse.metrics:
level: WARN
synapse.http.federation.well_known_resolver:
level: WARN
synapse.storage.TIME:
level: WARN
synapse.http.matrixfederationclient:
level: WARN
root:
level: INFO
handlers: [console, file]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment