Bugsnag error handler
Table of contents
Installation
composer require weew/app-error-handler-bugsnag
Introduction
This package integrates Bugsnag into the weew/app-error-handler package.
Usage
To enable this provider simply register it on the kernel.
$app->getKernel()->addProviders([
ErrorHandlerProvider::class,
BugsnagErrorHandlerProvider::class,
]);
Example config
This is how the config might look like in yaml:
bugsnag_error_handler:
env: "dev"
client_id: "client_id"
enabled_environments: ["dev", "stage", "prod"]
type: "service"
auto_notify: true
send_code: true
project_root: "path/to/root/directory"
hostname: "hostname"
number_of_skipped_stack_trace_lines: 5
metadata:
some: data
filters: ["password", "credit_card"]