matrix-synapse/templates/log.yaml.j2
changeset 39 90b1b7c4be70
equal deleted inserted replaced
38:b4e705f4cda4 39:90b1b7c4be70
       
     1 
       
     2 version: 1
       
     3 
       
     4 formatters:
       
     5   precise:
       
     6    format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s- %(message)s'
       
     7   journal_fmt:
       
     8    format: '%(name)s: [%(request)s] %(message)s'
       
     9 
       
    10 filters:
       
    11   context:
       
    12     (): synapse.util.logcontext.LoggingContextFilter
       
    13     request: ""
       
    14 
       
    15 handlers:
       
    16   file:
       
    17     class: logging.handlers.WatchedFileHandler
       
    18     formatter: precise
       
    19     filename: /var/log/matrix-synapse/homeserver.log
       
    20     filters: [context]
       
    21     level: ERROR
       
    22     encoding: utf8
       
    23   console:
       
    24     class: logging.StreamHandler
       
    25     formatter: precise
       
    26     level: ERROR
       
    27   journal:
       
    28     class: systemd.journal.JournalHandler
       
    29     formatter: journal_fmt
       
    30     filters: [context]
       
    31     SYSLOG_IDENTIFIER: synapse
       
    32 
       
    33 loggers:
       
    34     twisted:
       
    35         level: ERROR
       
    36 
       
    37     synapse:
       
    38         level: ERROR
       
    39 
       
    40     # the following levels are more verbose than most users want
       
    41     # set them to INFO if you need more logging
       
    42     synapse.metrics:
       
    43         level: ERROR
       
    44 
       
    45     synapse.http.federation.well_known_resolver:
       
    46         level: ERROR
       
    47 
       
    48     synapse.storage.TIME:
       
    49         level: ERROR
       
    50 
       
    51     synapse.http.matrixfederationclient:
       
    52         level: ERROR
       
    53 
       
    54 root:
       
    55     level: ERROR
       
    56     handlers: [journal]