e96/yii2-sentry A Yii2 client for Sentry (http://getsentry.com)

logsentryraven

Yii2 sentry client

Install

php composer.phar require e96/yii2-sentry

Usage

In config file:

'bootstrap' => ['log', 'raven'],
'components' => [
    'raven' => [
        'class' => 'e96\sentry\ErrorHandler',
        'dsn' => '', // Sentry DSN
    ],
    'log' => [
        'targets' => [
            [
                'class' => 'e96\sentry\Target',
                'levels' => ['error', 'warning'],
                'dsn' => '', // Sentry DSN
            ]
        ],
    ],
]

You can provide additional information with exceptions:

SentryHelper::extraData($task->attributes);
throw new Exception('unknown task type');

Or just capture message with full stacktrace

try {
    throw new Exception('FAIL');
} catch (Exception $e) {
    SentryHelper::captureWithMessage('Fail to save model', $e);
}

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



0.2.0 is the latest of 2 releases



MIT license
Stats
29 github stars & 7 github forks
7 downloads in the last day
127 downloads in the last 30 days
58437 total downloads