radicle-heartwood-lfs/crates/radicle-cli
Lorenz Leutgeb 4934473b86 cli/node: Improve log rotation
Only the latest log was kept as `node.log.old`. Now, log files are
numbered (`node.log.1`, `node.log.2` and so on). Also `node.log` is now
a hard link to the current log file. `rad node stop` will delete
`node.log` (note that `node.log.x` stays intact) and `rad node start`
will delete `node.log` before it creates `node.log.y` in case the node
crashed.

Also, when running in foreground mode, now a log file is created. It
just contains the hint that the node was started in foreground mode,
just to avoid confusion.

The implementation is split into a sans I/O part as `struct LogRotator`,
while the I/O counterpart is captured by `struct LogRotatorFileSystem`.
2025-08-04 17:13:11 +02:00
..
examples canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
src cli/node: Improve log rotation 2025-08-04 17:13:11 +02:00
tests canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
Cargo.toml chore: prepare crates release 2025-07-14 15:38:09 +01:00
build.rs repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00