This library provides middleware and listeners to fit our own specific uses of Bugsnag.
PHP >= 8.0symfony >= 5.0bugsnag/bugsnag-symfony >= 1.8
composer require beapp/bugsnag-symfony-ext
Add the following configuration :
bugsnag_ext:
handled_exceptions:
- 'App\Exception\LogicException'
excluded_exceptions:
- 'App\Exception\NotSoImportantException'
excluded_http_codes: ["4xx", 301]
session_per_request: true
handled_exceptions: The exceptions matching one these will be forced to be notified as handled on Bugsnag platformexcluded_exceptions: Ignore some specific exceptionsexcluded_http_codes: Ignore exceptions matching specific Http response status code. Use "x" as a placeholder for any number.session_per_request: Register a listener to start a session for every request