dot-errorhandler is Dotkernel's PSR-15 error handler middleware, with optional logging through any PSR-3 logger.
| Branch | Release | PSR-11 | Log Style Implementation | OSS Lifecycle | PHP Version |
|---|---|---|---|---|---|
| 6.0 | >= 6.0 |
1, 2 | PSR-Log (any logger) | ||
| 5.0 | >= 5.0 |
2 | PSR-Log | ||
| 4.1 | >= 4.2 |
2 | PSR-Log | ||
| 4.1 | < 4.2 |
2 | Laminas Log | ||
| 4.0 | < 4.1 |
1 | Laminas Log | ||
| 3.0 | < 4.0 |
1 | Laminas Log |
This package provides two middleware classes:
Dot\ErrorHandler\ErrorHandler, the same as Laminas Stratigility's ErrorHandler middleware, which is marked @final, but open for extensionDot\ErrorHandler\LogErrorHandler, which extends ErrorHandler and logs every error through a PSR-3 logger, optionally with extra request dataVersion 6 works with any PSR-11 container, any PSR-3 logger and any PSR-15 middleware pipeline.
It no longer installs dotkernel/dot-log for you, and it no longer requires laminas/laminas-diactoros directly; see Installation.
Upgrading from an earlier version? Read Upgrading.