Releases: tiny-blocks/http-logging
Releases · tiny-blocks/http-logging
Release list
v1.0.0
- PSR-15 middleware that logs each HTTP exchange: request
method,uri,query_parameters, and parsedbodybefore the handler, then responsestatus_code,duration_ms, and decoded JSONbodyafter. - Logs successful responses at
infolevel and 4xx/5xx responses aterrorlevel. - Measures request duration through a monotonic clock (
tiny-blocks/time), unaffected by wall-clock adjustments and swappable for deterministic tests. - Propagates
correlation_idinto every log entry when the request carries a correlation identifier (tiny-blocks/http-correlation-id), wired through the fluentLogMiddleware::create()->withLogger(...)->build()API.