matrix stuff: make journal usable again

This commit is contained in:
Franzi 2023-08-27 09:28:57 +02:00
parent 7dda27b69d
commit ad2312b715
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 17 additions and 3 deletions

View file

@ -1,10 +1,25 @@
version: 1 version: 1
formatters: formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
journal: journal:
format: '%(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s' format: '%(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
handlers: handlers:
file:
class: logging.handlers.TimedRotatingFileHandler
formatter: precise
filename: /var/log/matrix-synapse/homeserver.log
when: midnight
backupCount: 1 # Does not include the current log file.
encoding: utf8
buffer:
class: synapse.logging.handlers.PeriodicallyFlushingMemoryHandler
target: file
capacity: 10
flushLevel: 30 # Flush immediately for WARNING logs and higher
period: 5
console: console:
class: logging.StreamHandler class: logging.StreamHandler
formatter: journal formatter: journal
@ -15,7 +30,6 @@ loggers:
root: root:
level: WARNING level: WARNING
handlers: [buffer]
handlers: [console]
disable_existing_loggers: false disable_existing_loggers: false

View file

@ -180,7 +180,7 @@ logging:
telethon: telethon:
level: INFO level: INFO
aiohttp: aiohttp:
level: INFO level: WARNING
root: root:
level: INFO level: INFO
handlers: [console] handlers: [console]