Documentation

LoggingMiddleware.php

Pop PHP Framework (https://www.popphp.org/)

Tags
link
https://github.com/popphp/popphp-framework
author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

Table of Contents

Classes

LoggingMiddleware
PSR-3 logging middleware - logs one line per handler invocation (per dispatch attempt), with a level derived from the outcome (info for success, warning for 4xx, error for 5xx or a thrown exception), known- sensitive headers redacted by default, and request/response bodies excluded unless explicitly opted in. Exceptions are logged then re-thrown completely unmodified. No special coupling with RetryMiddleware - see logRetriesTo() for an optional adapter onto its existing onRetry hook.

        
On this page

Search results