2017 © Pedro Peláez
 

library yii1-bugsnag

Yii1 bugsnag error handler

image

demi/yii1-bugsnag

Yii1 bugsnag error handler

  • Monday, January 29, 2018
  • by demi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 293 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 9 Versions
  • 51 % Grown

The README.md

yii1-bugsnag

Yii1 bugsnag error handler, (*1)

Installation

Run, (*2)

composer require "demi/yii1-bugsnag" "~1.0"

Configuration

/protected/config/main.php:, (*3)

<?php

return [
    'components' => [
        'bugsnag' => [
            'class' => '\demi\bugsnag\yii1\BugsnagComponent',
            'bugsnagApiKey' => '<YOU API KEY>',
            'notifyReleaseStages' => ['production', 'development'],
            'projectRoot' => realpath(__DIR__ . '/../..'),
        ],
        'log' => [
            'class' => 'CLogRouter',
            'routes' => [
                [
                    'class' => '\demi\bugsnag\yii1\BugsnagLogRoute',
                    'levels' => 'error, warning',
                ],
            ],
        ],
    ],
];

/protected/config/console.php:, (*4)

<?php

$mainConfig = require(dirname(__FILE__) . '/main.php');
return [
    'components' => [
        'errorHandler' => [
            'class' => '\demi\bugsnag\yii1\BugsnagErrorHandler',
        ],
        'bugsnag' => $mainConfig['components']['bugsnag'],
        'log' => [
            'class' => 'CLogRouter',
            'routes' => [
                [
                    'class' => '\demi\bugsnag\yii1\BugsnagLogRoute',
                    'levels' => 'error, warning',
                ],
            ],
        ]
    ],
];

Examples

<?php

// log exception
Yii::app()->bugsnag->notifyException(\Exception $e);
// log message
Yii::app()->bugsnag->notifyError('TestErrorName', 'Example warning message!', ['foo' => 'bar'], 'warning');

// or native exception
throw \Exception('Example exception message');
// or native log message
Yii::log('Example warning message!', 'warning', 'application.error');

The Versions

29/01 2018

dev-master

9999999-dev https://github.com/demisang/yii1-bugsnag#readme

Yii1 bugsnag error handler

  Sources   Download

GNU GPL-3.0-or-later

The Requires

 

logger php error handler bugsnag yii1

14/06 2016

1.0.7

1.0.7.0 https://github.com/demisang/yii1-bugsnag#readme

Yii1 bugsnag error handler

  Sources   Download

GNU

The Requires

 

logger php error handler bugsnag yii1

14/06 2016

1.0.6

1.0.6.0 https://github.com/demisang/yii1-bugsnag#readme

Yii1 bugsnag error handler

  Sources   Download

GNU

The Requires

 

logger php error handler bugsnag yii1

13/06 2016

1.0.5

1.0.5.0 https://github.com/demisang/yii1-bugsnag#readme

Yii1 bugsnag error handler

  Sources   Download

GNU

The Requires

 

logger php error handler bugsnag yii1

13/06 2016

1.0.4

1.0.4.0 https://github.com/demisang/yii1-bugsnag#readme

Yii1 bugsnag error handler

  Sources   Download

GNU

The Requires

 

logger php error handler bugsnag yii1

13/06 2016

1.0.3

1.0.3.0 https://github.com/demisang/yii1-bugsnag#readme

Yii1 bugsnag error handler

  Sources   Download

GNU

The Requires

 

logger php error handler bugsnag yii1

13/06 2016

1.0.2

1.0.2.0 https://github.com/demisang/yii1-bugsnag#readme

Yii1 bugsnag error handler

  Sources   Download

GNU

The Requires

 

logger php error handler bugsnag yii1

13/06 2016

1.0.1

1.0.1.0 https://github.com/demisang/yii1-bugsnag#readme

Yii1 bugsnag error handler

  Sources   Download

GNU

The Requires

 

logger php error handler bugsnag yii1

13/06 2016

1.0.0

1.0.0.0 https://github.com/demisang/yii1-bugsnag#readme

Yii1 bugsnag error handler

  Sources   Download

GNU

The Requires

 

logger php error handler bugsnag yii1