log_config.yaml 535 B

12345678910111213141516171819202122232425
  1. version: 1
  2. # In systemd's journal, loglevel is implicitly stored, so let's omit it
  3. # from the message text.
  4. formatters:
  5. journal_fmt:
  6. format: '%(name)s: [%(request)s] %(message)s'
  7. filters:
  8. context:
  9. (): synapse.util.logcontext.LoggingContextFilter
  10. request: ""
  11. handlers:
  12. journal:
  13. class: systemd.journal.JournalHandler
  14. formatter: journal_fmt
  15. filters: [context]
  16. SYSLOG_IDENTIFIER: synapse
  17. root:
  18. level: INFO
  19. handlers: [journal]
  20. disable_existing_loggers: False