weew/app-error-handler-bugsnag

Integrates Bugsnag into the weew/app-error-handler package.

v1.11.2 2016-07-21 11:17 UTC

README

Build Status Code Quality Test Coverage Version Licence

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"]