diff options
| author | Luke Hoersten <[email protected]> | 2020-06-09 19:14:49 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-06-09 19:14:49 -0500 |
| commit | 84bb36a6ba49c71f38178d2ddaeff7f94d2d6def (patch) | |
| tree | bc1cab066143452ae5bf1414b2b7754eba4d1be2 /matrix-synapse/templates/log.yaml.j2 | |
| parent | e041378a98f0140cd921b47fb654090dfc453cd4 (diff) | |
Added pgsql support for matrix.
Diffstat (limited to 'matrix-synapse/templates/log.yaml.j2')
| -rw-r--r-- | matrix-synapse/templates/log.yaml.j2 | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/matrix-synapse/templates/log.yaml.j2 b/matrix-synapse/templates/log.yaml.j2 new file mode 100644 index 0000000..51aba22 --- /dev/null +++ b/matrix-synapse/templates/log.yaml.j2 @@ -0,0 +1,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] |
