radicle-heartwood-lfs/crates/radicle-systemd/src
Lorenz Leutgeb e563117397 node: Refactor logging initialization
Logging initialization was infallible previously, i.e., a logger would
always have to be chosen, falling back to our own logger
implementation in case of failure with setting up journald submission.

This lead to complexity like attempting to log errors from parsing
arguments, as there is a circular dependency.

Change this to make logging initialization fallible. If it fails, exit
non-zero instead of falling back to another logger. This makes the
initialization code slightly simpler.

At the same time, make choosing the logger possible via the command
line and deprecate `--log`.

Note that we still default to journald if detected.
2025-09-23 16:33:50 +02:00
..
journal.rs node: Refactor logging initialization 2025-09-23 16:33:50 +02:00
lib.rs systemd: Require Linux for journal module 2025-09-19 15:39:53 +02:00
listen.rs systemd: Move socket activation to module 2025-08-07 08:30:59 +01:00