2017 © Pedro Peláez
 

yii2-extension yii2-errbit

Logs errors to [errbit](https://github.com/errbit/errbit)

image

nkovacs/yii2-errbit

Logs errors to [errbit](https://github.com/errbit/errbit)

  • Monday, June 1, 2015
  • by nkovacs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10,495 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

Yii 2 Errbit error handler

Logs errors to errbit, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist nkovacs/yii2-errbit "*"

or add, (*4)

"nkovacs/yii2-errbit": "*"

to the require section of your composer.json file., (*5)

Usage

Replace the default error handler with either \nkovacs\errbit\WebErrorHandler or \nkovacs\errbit\ConsoleErrorHandler:, (*6)

...
    'components' => [
        'errorHandler' => [
            'class' => 'nkovacs\errbit\ConsoleErrorHandler',
            'errbit' => [
                'api_key' => 'your api key',
                'host' => 'errbit.example.org',
            ],
        ],
    ],
...

or, (*7)

...
    'components' => [
        'errorHandler' => [
            'class' => 'nkovacs\errbit\ConsoleErrorHandler',
            'errbit' => [
                'api_key' => 'your api key',
                'host' => 'errbit.example.org',
            ],
        ],
    ],
...

You can pass additional options to errbitPHP:, (*8)

...
    'components' => [
        'errorHandler' => [
            'class' => 'nkovacs\errbit\ConsoleErrorHandler',
            `errbit` => [
                'api_key' => 'your api key',
                'host' => 'errbit.example.org',
                'environment_name' => 'development',
            ],
        ],
    ],
...

To enable the js notifier:, (*9)

...
    'components' => [
        'errorHandler' => [
            'class' => 'nkovacs\errbit\WebErrorHandler',
            `errbit` => [
                'api_key' => 'your api key',
                'host' => 'errbit.example.org',
            ],
            'jsNotifier' => true,
        ],
    ],
...

You can pass additional options to the js plugin using the jsOptions property., (*10)

If the controller implements UserInfoInterface, the information returned by getErrbitUserInfo will also be sent to errbit., (*11)

The Versions

01/06 2015

dev-master

9999999-dev

Logs errors to [errbit](https://github.com/errbit/errbit)

  Sources   Download

BSD-3-Clause

The Requires

 

by Nikola Kovacs

extension yii2 errbit

01/06 2015

0.1.3

0.1.3.0

Logs errors to [errbit](https://github.com/errbit/errbit)

  Sources   Download

BSD-3-Clause

The Requires

 

by Nikola Kovacs

extension yii2 errbit

02/03 2015

0.1.2

0.1.2.0

Logs errors to [errbit](https://github.com/errbit/errbit)

  Sources   Download

BSD-3-Clause

The Requires

 

by Nikola Kovacs

extension yii2 errbit

10/12 2014

0.1.1

0.1.1.0

Logs errors to [errbit](https://github.com/errbit/errbit)

  Sources   Download

BSD-3-Clause

The Requires

 

by Nikola Kovacs

extension yii2 errbit

03/12 2014

0.1.0

0.1.0.0

Logs errors to [errbit](https://github.com/errbit/errbit)

  Sources   Download

BSD-3-Clause

The Requires

 

by Nikola Kovacs

extension yii2 errbit