Add automatic log rotation for daemon (bd-154)
- Integrated lumberjack library for production-ready log rotation - Configurable via env vars: BEADS_DAEMON_LOG_MAX_SIZE, BEADS_DAEMON_LOG_MAX_BACKUPS, BEADS_DAEMON_LOG_MAX_AGE, BEADS_DAEMON_LOG_COMPRESS - Defaults: 10MB max size, 3 backups, 7 day retention, compression enabled - Added comprehensive tests for env var parsing and rotation config - Updated README.md and CHANGELOG.md with rotation documentation - Prevents unbounded log growth for long-running daemons Amp-Thread-ID: https://ampcode.com/threads/T-8232d41a-6872-4f4c-962c-7fae8f5e83b7 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- **Log Rotation**: Automatic daemon log rotation with configurable limits (bd-154)
|
||||
- Prevents unbounded log file growth for long-running daemons
|
||||
- Configurable via environment variables: `BEADS_DAEMON_LOG_MAX_SIZE`, `BEADS_DAEMON_LOG_MAX_BACKUPS`, `BEADS_DAEMON_LOG_MAX_AGE`
|
||||
- Optional compression of rotated logs
|
||||
- Defaults: 10MB max size, 3 backups, 7 day retention, compression enabled
|
||||
- **Batch Deletion**: Enhanced `bd delete` command with batch operations (bd-127)
|
||||
- Delete multiple issues at once: `bd delete bd-1 bd-2 bd-3 --force`
|
||||
- Read from file: `bd delete --from-file deletions.txt --force`
|
||||
|
||||
Reference in New Issue
Block a user