radicle-heartwood-lfs/crates
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
..
radicle canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
radicle-cli cli/node: Improve log rotation 2025-08-04 17:13:11 +02:00
radicle-cli-test repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
radicle-cob chore: Automated fixes generated by clippy 2025-07-25 11:25:05 +02:00
radicle-crypto ssh: Use winpipe for SSH agent on Windows 2025-07-23 10:31:15 +02:00
radicle-dag repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
radicle-fetch clippy: Allow doc_overindented_list_items 2025-07-27 23:32:02 +02:00
radicle-node canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
radicle-protocol canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
radicle-remote-helper canonical: Support Annotated Tags 2025-08-04 17:00:54 +02:00
radicle-schemars chore: Automated fixes generated by clippy 2025-07-25 11:25:05 +02:00
radicle-signals repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
radicle-ssh ssh: provide path on connect error 2025-07-23 10:31:15 +02:00
radicle-systemd repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
radicle-term chore: Automated fixes generated by clippy 2025-07-25 11:25:05 +02:00