Enable journal logging by default — disable if not on systemd
Andrej Shadura
6 years ago
48 | 48 |
python-twisted (>= 16.0.0),
|
49 | 49 |
python-nacl (<< 1.1.0) | python-pymacaroons,
|
50 | 50 |
python-nacl (>= 1.1.0) | python-pymacaroons-pynacl,
|
|
51 |
python-systemd,
|
51 | 52 |
${misc:Depends},
|
52 | 53 |
${python:Depends}
|
53 | 54 |
Suggests:
|
3 | 3 |
formatters:
|
4 | 4 |
precise:
|
5 | 5 |
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s- %(message)s'
|
|
6 |
journal_fmt:
|
|
7 |
format: '%(name)s: [%(request)s] %(message)s'
|
6 | 8 |
|
7 | 9 |
filters:
|
8 | 10 |
context:
|
|
21 | 23 |
class: logging.StreamHandler
|
22 | 24 |
formatter: precise
|
23 | 25 |
level: WARN
|
|
26 |
journal:
|
|
27 |
class: systemd.journal.JournalHandler
|
|
28 |
formatter: journal_fmt
|
|
29 |
filters: [context]
|
|
30 |
SYSLOG_IDENTIFIER: synapse
|
24 | 31 |
|
25 | 32 |
loggers:
|
26 | 33 |
synapse:
|
|
31 | 38 |
|
32 | 39 |
root:
|
33 | 40 |
level: INFO
|
34 | |
handlers: [file, console]
|
|
41 |
handlers: [file, journal]
|