cli/docs
Snider 155251c8d9
Implement log retention policy (#306)
* Implement log retention policy

- Added Append method to io.Medium interface and implementations.
- Defined RotationOptions and updated log.Options to support log rotation.
- Implemented RotatingWriter in pkg/log/rotation.go with size and age-based retention.
- Updated Logger to use RotatingWriter when configured.
- Added comprehensive tests for log rotation and retention.
- Documented the log retention policy in docs/pkg/log.md and docs/configuration.md.
- Fixed MockMedium to return current time for Stat to avoid premature cleanup in tests.

* Fix formatting issues in pkg/io/local/client.go

The CI failed due to formatting issues. This commit fixes them and ensures all modified files are properly formatted.

* Fix auto-merge workflow CI failure

Inlined the auto-merge logic and added actions/checkout and --repo flag to gh command to provide the necessary git context. This resolves the 'fatal: not a git repository' error in CI.

* Address feedback on log retention policy

- Made cleanup synchronous in RotatingWriter for better reliability.
- Improved rotation error handling with recovery logic.
- Fixed size tracking to only increment on successful writes.
- Updated MockMedium to support and preserve ModTimes for age-based testing.
- Added TestRotatingWriter_AgeRetention and TestLogger_RotationIntegration.
- Implemented negative MaxAge to disable age-based retention.
- Updated documentation for clarity on Output priority and MaxAge behavior.
- Fixed typo in test comments.
- Fixed CI failure in auto-merge workflow.

---------

Co-authored-by: Claude <developers@lethean.io>
2026-02-05 10:26:32 +00:00
..
cmd docs: add guides and fix documentation issues 2026-01-29 19:59:49 +00:00
examples docs: add SDK configuration example 2026-01-29 01:24:41 +00:00
pkg Implement log retention policy (#306) 2026-02-05 10:26:32 +00:00
skill docs: add Claude Code skill installation guide 2026-01-29 15:10:25 +00:00
configuration.md Implement log retention policy (#306) 2026-02-05 10:26:32 +00:00
faq.md Add User Documentation (User Guide, FAQ, Troubleshooting) (#307) 2026-02-05 06:55:52 +00:00
getting-started.md docs: add guides and fix documentation issues 2026-01-29 19:59:49 +00:00
glossary.md docs: add guides and fix documentation issues 2026-01-29 19:59:49 +00:00
index.md Remove StrictHostKeyChecking=no from SSH commands (#315) 2026-02-05 07:09:34 +00:00
migration.md docs: add guides and fix documentation issues 2026-01-29 19:59:49 +00:00
troubleshooting.md Add User Documentation (User Guide, FAQ, Troubleshooting) (#307) 2026-02-05 06:55:52 +00:00
user-guide.md Add User Documentation (User Guide, FAQ, Troubleshooting) (#307) 2026-02-05 06:55:52 +00:00
workflows.md Configure branch coverage measurement in test tooling (#317) 2026-02-05 10:05:56 +00:00