feat: add log to journald feature

The systemd-journald is used in most major Linux distros that use systemd.
This enables logging using the systemd-journald native protocol, instead
of just writing to stderr.
This commit is contained in:
Renjaya Raga Zenta
2024-11-11 14:58:09 +07:00
parent b601b3e46d
commit 8843aa92fa
6 changed files with 58 additions and 0 deletions
@@ -160,6 +160,10 @@ variable, it does not exist in the configuration file:
Garage daemon send its logs to `syslog` (using the libc `syslog` function)
instead of printing to stderr.
- `GARAGE_LOG_TO_JOURNALD` (since `v2.0.0`): set this to `1` or `true` to make the
Garage daemon send its logs to `journald` (using the native protocol of `systemd-journald`)
instead of printing to stderr.
The following environment variables can be used to override the corresponding
values in the configuration file: