For HTTP usage we leverage \Laminas\Stratigility\Middleware\ErrorHandler (via pipeline.php) to automatically log all kind of exception/error/warning.
We have no equivalent for CLI usage. So a CLI usage might throw an exception that might never be logged through our standard channels (db, file, emails).
We should come up with a solution to that. Either upgrade our CLI command architecture to something more integrated (laminas-cli ? Symfony Console ? something else ?) or something more custom like:
For HTTP usage we leverage
\Laminas\Stratigility\Middleware\ErrorHandler
(viapipeline.php
) to automatically log all kind of exception/error/warning.We have no equivalent for CLI usage. So a CLI usage might throw an exception that might never be logged through our standard channels (db, file, emails).
We should come up with a solution to that. Either upgrade our CLI command architecture to something more integrated (laminas-cli ? Symfony Console ? something else ?) or something more custom like: