matrix-synapse/templates/log.yaml.j2
author Luke Hoersten <luke@hoersten.org>
Fri, 03 Jul 2020 12:00:27 -0500
changeset 111 1c1a911b26aa
parent 39 90b1b7c4be70
permissions -rw-r--r--
Made minecraft role support vanilla and paper forks.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
version: 1
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
formatters:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  precise:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
   format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s- %(message)s'
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
  journal_fmt:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
   format: '%(name)s: [%(request)s] %(message)s'
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
filters:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
  context:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
    (): synapse.util.logcontext.LoggingContextFilter
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
    request: ""
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
handlers:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
  file:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
    class: logging.handlers.WatchedFileHandler
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
    formatter: precise
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
    filename: /var/log/matrix-synapse/homeserver.log
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
    filters: [context]
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
    level: ERROR
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
    encoding: utf8
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
  console:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
    class: logging.StreamHandler
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
    formatter: precise
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
    level: ERROR
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    27
  journal:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    28
    class: systemd.journal.JournalHandler
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    29
    formatter: journal_fmt
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    30
    filters: [context]
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    31
    SYSLOG_IDENTIFIER: synapse
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    32
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    33
loggers:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    34
    twisted:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    35
        level: ERROR
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    36
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    37
    synapse:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    38
        level: ERROR
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    39
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    40
    # the following levels are more verbose than most users want
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    41
    # set them to INFO if you need more logging
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    42
    synapse.metrics:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    43
        level: ERROR
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    44
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    45
    synapse.http.federation.well_known_resolver:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    46
        level: ERROR
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    47
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    48
    synapse.storage.TIME:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    49
        level: ERROR
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    50
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    51
    synapse.http.matrixfederationclient:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    52
        level: ERROR
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    53
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    54
root:
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    55
    level: ERROR
90b1b7c4be70 Added pgsql support for matrix.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    56
    handlers: [journal]