2017 © Pedro Peláez
 

library yii1-bugsnag

Yii1 log target and ErrorHandler for Bugsnag

image

pinfirestudios/yii1-bugsnag

Yii1 log target and ErrorHandler for Bugsnag

  • Monday, April 23, 2018
  • by pinfirestudios
  • Repository
  • 1 Watchers
  • 0 Stars
  • 158 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 26 % Grown

The README.md

Yii1 Bugsnag integration

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

$config = [
    'components' => [
        'errorHandler' => [
            'class' => 'pinfirestudios\yii1bugsnag\BugsnagErrorHandler' 
        ],
        'bugsnag' => [
            'class' => 'pinfirestudios\yii1bugsnag\BugsnagComponent', // Or your override of such
            'bugsnag_api_key' => 'YOUR API KEY',
            'notifyReleaseStages' => ['staging', 'production'],
        ],
        'log' => [
            'class' => 'CLogRouter',
            'routes' => [
                [
                    'class' => 'pinfirestudios\yii1bugsnag\BugsnagLogTarget',
                    'levels' => 'error, warning, info, trace',
                ]
            ],
        ],
    ],
];

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, add the BugsnagJsWidget to your default layout. This will automatically register Bugsnag's javascript to the page. Default version is 3., (*7)

    $this->widget(\pinfirestudios\yii1bugsnag\BugsnagJsWidget::class);, (*8)

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

The Versions

23/04 2018

dev-master

9999999-dev

Yii1 log target and ErrorHandler for Bugsnag

  Sources   Download

MIT

The Requires

 

logging errors

23/04 2018

v1.0.0

1.0.0.0

Yii1 log target and ErrorHandler for Bugsnag

  Sources   Download

MIT

The Requires

 

logging errors