|
1 | 1 | # agentic-node-ts-starter |
2 | 2 |
|
| 3 | +## 0.21.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [#104](https://github.com/sapientpants/agentic-node-ts-starter/pull/104) [`2fd789b`](https://github.com/sapientpants/agentic-node-ts-starter/commit/2fd789b23703a4f2dad4a9378b665b9d0cb8a484) Thanks [@sapientpants](https://github.com/sapientpants)! - feat: Add configurable logging output destinations |
| 8 | + |
| 9 | + Adds comprehensive support for multiple logging output destinations to provide flexibility for different deployment scenarios and application architectures. |
| 10 | + |
| 11 | + Key features: |
| 12 | + - Multiple output destinations: stdout, stderr, file, syslog, null |
| 13 | + - File logging with rotation support (size and count limits) |
| 14 | + - Programmatic API for runtime output switching |
| 15 | + - Preserves all existing logger features (context, correlation IDs, redaction) |
| 16 | + - Backward compatible with no breaking changes |
| 17 | + |
| 18 | + This enables developers to: |
| 19 | + - Redirect logs to stderr for applications that use stdout for data output |
| 20 | + - Write logs to files with automatic rotation for long-running services |
| 21 | + - Send logs to centralized syslog servers for enterprise environments |
| 22 | + - Disable logging entirely with the null output for testing or special cases |
| 23 | + |
| 24 | + For detailed usage, see docs/LOGGING_OUTPUT.md |
| 25 | + |
| 26 | +### Patch Changes |
| 27 | + |
| 28 | +- [#105](https://github.com/sapientpants/agentic-node-ts-starter/pull/105) [`834f02b`](https://github.com/sapientpants/agentic-node-ts-starter/commit/834f02b028c4e33e2f59e6ebc853ca796b750fe9) Thanks [@sapientpants](https://github.com/sapientpants)! - fix: resolve file rotation test race condition in CI |
| 29 | + - Create unique test directories for each test iteration to avoid conflicts |
| 30 | + - Add configurable timeout for file operations in CI environments |
| 31 | + - Implement proper cleanup with error handling using try-finally blocks |
| 32 | + - Remove console statement to comply with linting rules |
| 33 | + |
| 34 | + This fixes the intermittent ENOENT errors when pino-roll tries to access |
| 35 | + rotation files that may have been cleaned up by concurrent tests. |
| 36 | + |
| 37 | +- [#104](https://github.com/sapientpants/agentic-node-ts-starter/pull/104) [`2fd789b`](https://github.com/sapientpants/agentic-node-ts-starter/commit/2fd789b23703a4f2dad4a9378b665b9d0cb8a484) Thanks [@sapientpants](https://github.com/sapientpants)! - feat: Add comprehensive security validation for logging configuration |
| 38 | + - Add path traversal protection for file logging paths |
| 39 | + - Validate syslog hostnames and ports to prevent injection attacks |
| 40 | + - Block writing logs to restricted system directories |
| 41 | + - Set explicit file permissions (640 by default) for log files |
| 42 | + - Create directories with restrictive permissions (750) |
| 43 | + - Add proper cleanup for file descriptors to prevent resource leaks |
| 44 | + - Add configurable test timeouts for CI reliability |
| 45 | + - Improve error handling with fallback to stdout on validation failures |
| 46 | + - Add comprehensive security documentation |
| 47 | + |
3 | 48 | ## 0.20.0 |
4 | 49 |
|
5 | 50 | ### Minor Changes |
|
0 commit comments