Codescribe
8abeeea4c3
log: persist internal runtime logs to disk
...
Add file-backed persistence to the internal logWriter so runtime logs
survive service restarts. When internal logging is enabled (CD mode,
no explicit log_path), writes are teed to both the existing in-memory
ring buffer and a rotated file on disk (ctrld.log in the home directory).
File rotation: 5MB max with 1 backup (ctrld.log.1), so max ~10MB on disk.
Log view/send now reads from the persisted files (including backup) to
provide complete history across restarts. Live tail continues to use
the in-memory subscriber mechanism unchanged.
Activation: same conditions as existing internal logging — CD mode only,
no log_path configured. No new config options or dependencies.
2026-04-30 19:19:19 +07:00
..
2024-02-07 14:40:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2025-02-18 20:25:13 +07:00
2024-08-07 15:51:11 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2023-08-15 18:22:38 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2024-10-24 13:05:48 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2023-12-13 14:53:29 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2025-02-18 20:25:13 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2023-08-15 18:22:38 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2024-05-09 18:39:30 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2025-05-15 17:00:59 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2025-03-26 23:18:36 +07:00
2025-03-26 23:18:36 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:19 +07:00
2026-04-30 19:19:18 +07:00
2025-03-26 23:18:04 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:18 +07:00
2026-04-30 19:19:19 +07:00
2024-02-07 14:40:18 +07:00