src.nth.io/

summaryrefslogtreecommitdiff
path: root/matrix-synapse/templates/log.yaml.j2
blob: 51aba22c43a6e3522d122cc4a0b1da1ca07d077f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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]