Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Console] Automatic Exception logging #10895

Closed
@maxromanovsky

Description

@maxromanovsky

There is an inconsistency between HTTP and CLI APIs when it comes to exception handling: by default Symfony logs an exception using \Symfony\Component\HttpKernel\EventListener\ExceptionListener::logException().
CLI API only renders an exception to OutputInterface.
There is an entry in Cookbook that describes how to implement such functionality, but I suggest to implement it in the Framework itself and enable by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions