rmrevin/yii2-rollbar Yii2 error handler rollbar

fonterrorrollbar

Yii 2 Rollbar error handler

License Latest Stable Version Latest Unstable Version Total Downloads

Installation

composer require "rmrevin/yii2-rollbar:~1.5"

Usage

In main config:

<?php

return [
    // ...
    'bootstrap' => [
        // ...
        'rollbar',
    ],
    'components' => [
        // ...
        'rollbar' => [
            'class' => 'rmrevin\yii\rollbar\Component',
            'accessToken' => 'YOU ACCESS TOKEN',
            'environment' => 'production',
            // ... more options see in code
        ],
    ],
    // ...
];

In main config of web application:

<?php
return [
    // ...
    'components' => [
        // ...
        'errorHandler' => [
            'class' => 'rmrevin\yii\rollbar\web\ErrorHandler',
        ],
    ],
    // ...
];

In main config of console application:

<?php
return [
    // ...
    'components' => [
        // ...
        'errorHandler' => [
            'class' => 'rmrevin\yii\rollbar\console\ErrorHandler',
        ],
    ],
    // ...
];

Changelog

2017-07-10 - 1.5.0

  • Update Rollbar extension to 0.18.2.
  • Update packages.

2016-06-28 - 1.4.0

  • Update Rollbar extension to 0.18.0.

2015-08-16 - 1.3.0

  • Update Rollbar extension to 0.15.0.

2015-07-23 - 1.2.0

  • Update Rollbar extension to 0.14.0.

2015-06-20 - 1.1.1

  • Add enabled check in handlers.
  • Moooore, mmmoooorrreeee oooptions!!!
  • Enable tracking 404 error.
  • Refactoring.

2015-06-20 - 1.1.0

  • Add default logger and more options in Component.

2015-06-20 - 1.0.0

  • Initial.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.5.0 is the latest of 9 releases



MIT license
Stats
6 github stars & 1 github forks
0 downloads in the last day
3 downloads in the last 30 days
2342 total downloads