2017 © Pedro Peláez
 

library yii2-bugsnag

Yii2 log target and ErrorHandler for BugSnag

image

pinfirestudios/yii2-bugsnag

Yii2 log target and ErrorHandler for BugSnag

  • Tuesday, January 30, 2018
  • by pinfirestudios
  • Repository
  • 2 Watchers
  • 6 Stars
  • 2,723 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 4 Open issues
  • 7 Versions
  • 15 % Grown

The README.md

Yii2 Bugsnag integration

To use, configure as such:, (*1)

$config = [
    'components' => [
        'errorHandler' => [
            'class' => 'pinfirestudios\yii2bugsnag\BugsnagWebErrorHandler' // For your web configuration
            'class' => 'pinfirestudios\yii2bugsnag\BugsnagConsoleErrorHandler' // For your console configuration
        ],
        'bugsnag' => [
            'class' => 'pinfirestudios\yii2bugsnag\BugsnagComponent', // Or your override of such
            'bugsnag_api_key' => 'YOUR API KEY',
            'notifyReleaseStages' => ['staging', 'production'],
        ],
        'log' => [
            'traceLevel' => 8,
            'targets' => [
                [
                    'class' => 'pinfirestudios\yii2bugsnag\BugsnagLogTarget',
                    'levels' => ['error', 'warning', 'info', 'trace'],
                    'logVars' => [],
                ]
            ],
        ],
    ],
];

If you would like to use Bugsnag's javascript on your site, you'll need to install bower-asset/bugsnag:, (*2)

  1. Add the following to your project's composer.json, (*3)

    "repositories": [ { "type": "composer", "url": "https://asset-packagist.org" } ], (*4)

  2. Require bower-asset/bugsnag, (*5)

    composer require bower-asset/bugsnag, (*6)

  3. Once you have it installed, simply depend on BugsnagAsset in your AppAsset. This will automatically register Bugsnag's javascript to the page. Default version is 3., (*7)

    class AppAsset extends AssetBundle { public $depends = [ 'pinfirestudios\yii2bugsnag\BugsnagAsset', ]; }, (*8)

If you need to use version 2 of Bugsnag's javascript, you can specify the version in your configuration. See Customizing Asset Bundles., (*9)

The Versions

30/01 2018

dev-master

9999999-dev

Yii2 log target and ErrorHandler for BugSnag

  Sources   Download

MIT

The Requires

 

logging errors

30/01 2018

1.0.5

1.0.5.0

Yii2 log target and ErrorHandler for BugSnag

  Sources   Download

MIT

The Requires

 

logging errors

30/01 2018

1.0.4

1.0.4.0

Yii2 log target and ErrorHandler for BugSnag

  Sources   Download

MIT

The Requires

 

logging errors

07/11 2017

1.0.3

1.0.3.0

Yii2 log target and ErrorHandler for BugSnag

  Sources   Download

MIT

The Requires

 

logging errors

03/11 2017

1.0.2

1.0.2.0

Yii2 log target and ErrorHandler for BugSnag

  Sources   Download

MIT

The Requires

 

logging errors

02/11 2017

1.0.1

1.0.1.0

Yii2 log target and ErrorHandler for BugSnag

  Sources   Download

MIT

The Requires

 

logging errors

29/10 2017

1.0.0

1.0.0.0

Yii2 log target and ErrorHandler for BugSnag

  Sources   Download

MIT

The Requires

 

logging errors