2021-06-03 18:20:40 +02:00
|
|
|
# Logging Sample Configuration File
|
|
|
|
|
|
|
|
Below is a sample logging configuration file. This file can be tweaked to control how your
|
2023-01-19 12:58:17 +01:00
|
|
|
homeserver will output logs. The value of the `log_config` option in your homeserver config
|
|
|
|
should be the path to this file.
|
|
|
|
|
|
|
|
To apply changes made to this file, send Synapse a SIGHUP signal (or, if using `systemd`, run
|
|
|
|
`systemctl reload` on the Synapse service).
|
2021-06-03 18:20:40 +02:00
|
|
|
|
2021-10-20 13:48:15 +02:00
|
|
|
Note that a default logging configuration (shown below) is created automatically alongside
|
|
|
|
the homeserver config when following the [installation instructions](../../setup/installation.md).
|
|
|
|
It should be named `<SERVERNAME>.log.config` by default.
|
2021-06-03 18:20:40 +02:00
|
|
|
|
2024-01-10 14:34:55 +01:00
|
|
|
Hint: If you're looking for a guide on what each of the fields in the "Processed request" log lines mean,
|
|
|
|
see [Request log format](../administration/request_log.md).
|
|
|
|
|
2021-06-03 18:20:40 +02:00
|
|
|
```yaml
|
|
|
|
{{#include ../../sample_log_config.yaml}}
|
2021-10-20 13:48:15 +02:00
|
|
|
```
|