Skip to content

Commit e7eedee

Browse files
committed
docs(changelog): update logging improvements
- Document optional fields toggle via initialiser (default off) - Clarify payload order to prioritise timestamp and level - Simplify completion message format with controller/action - Note log level normalisation by HTTP status and required field - Add test coverage notes incl. optional modes and SimpleCov - Record fixes for nil severity, whitespace, params key, time, query
1 parent 53977fe commit e7eedee

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,28 @@ Versioning](https://semver.org/spec/v2.0.0.html).
1010

1111
### Added
1212

13+
- Made optional fields configurable via `include_optional` initialiser parameter
14+
(defaults to `false` for backward compatibility).
15+
- Added test coverage for optional field inclusion modes (enabled/disabled
16+
configurations).
1317
- Added automatic log level normalisation based on HTTP status codes.
1418
- Added test coverage reporting via SimpleCov.
1519

1620
### Changed
1721

22+
- Restructured JSON payload assembly to prioritise `ts` and `level` fields at
23+
output.
24+
- Simplified request completion messages to use single-line format with
25+
controller and action.
1826
- Included log level in required log fields for consistent output.
1927
- Updated request completion messages to include path, controller, and action.
2028
- Simplified payload assembly to build from timestamp before merging fields.
2129

2230
### Fixed
2331

32+
- Fixed log level assignment to handle nil severity values gracefully without
33+
truncation errors.
34+
- Trimmed extraneous whitespace from log level field with `squish`.
2435
- Fixed request params being logged under the wrong key.
2536
- Fixed request time formatting when milliseconds are provided as floats.
2637
- Fixed query string handling when it is missing to avoid errors.

0 commit comments

Comments
 (0)