- Added logging configuration

This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-21 17:27:13 +02:00
parent 2fc6213a39
commit 11c2a635e0
1 changed files with 15 additions and 4 deletions

View File

@ -316,7 +316,15 @@ drpass
restart "restart";
die "die";
}
```
TODO: Do this
### Logging
One can configure where logs are to be sent to along with the verbosity of said logs:
```
log
{
source
@ -325,13 +333,16 @@ log
!debug;
}
destination { syslog; }
destination
{
syslog;
}
}
```
TODO: Do this
1. The `source` block defines the filter for logs
* We recommend logging `all` - everything but excluding debugging prints (hence the `!debug`)
2. We almost always suggest have the `destination` be `syslog` as that is where one is most likely to look in the event of any errors
### Links