gelige / yii2-rollbar-simple
Rollbar for Yii2
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- rollbar/rollbar: ^1.4
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-05-11 09:12:07 UTC
README
Simple Rollbar logger your Yii2 application.
Installation
Through composer:
To install, either run
$ php composer.phar require gelige/yii2-rollbar-simple:1.0.*
or add
"gelige/yii2-rollbar-simple": "1.0.*"
to the require
section of your composer.json
file.
Usage
- Add the component configuration in your global
main.php
config file:
'components' => [ 'rollbar' => [ 'class' => 'gelige\yii\rollbar\Rollbar', 'accessToken' => 'POST_SERVER_ITEM_ACCESS_TOKEN', ], ],
- Add a new log target in your global
main.php
config file:
'components' => [ 'log' => [ 'targets' => [ 'class' => 'gelige\yii\rollbar\RollbarTarget', // 'except' => ['yii\web\HttpException:404'], // 'levels' => YII_DEBUG ? ['error', 'warning'] : ['error'], ], ], ],