Releases: tiny-blocks/logger
Releases · tiny-blocks/logger
v1.3.2
v1.3.1
- Add fail-safe JSON encoding with a fallback payload when encoding fails, plus control-character escaping in log headers.
- Update redaction strategies (email/name/phone/document) to be multibyte-aware and apply redactions recursively across nested context data.
- Normalize project tooling/config (Composer normalization, mutation testing config, packaging/export ignores, editor/ignore files).
v1.3.0
- Updates this library’s Composer dependency constraint for
tiny-blocks/collectionto allow the new major release (^2.0), aligning the package with the latesttiny-blocks/collectionseries.
v1.2.0
- Introduced a fixed mask length for password redaction, ensuring consistent output regardless of input length.
- Enhanced documentation to reflect changes in password masking behavior and usage examples.
v1.1.0
- Adds
PasswordRedactionclass that fully masks password values with asterisks. - Adds
NameRedactionclass that preserves the first N characters (default: 2) and masks the rest. - Updates README.md with usage examples and documentation for both new redaction types.
v1.0.1
- Implement
LogStreamfallback mechanism and add unit tests.
v1.0.0
- Implements a PSR-3 compliant structured logger with support for correlation IDs and customizable output templates.
- Adds three built-in redaction strategies (document, email, and phone) with configurable masking behavior.