2017 © Pedro Peláez
 

yii2-extension yii2-sentry

A Yii2 client for Sentry (http://getsentry.com)

image

e96/yii2-sentry

A Yii2 client for Sentry (http://getsentry.com)

  • Friday, October 21, 2016
  • by m8rge
  • Repository
  • 8 Watchers
  • 31 Stars
  • 40,440 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Yii2 sentry client

Install

php composer.phar require e96/yii2-sentry

Usage

In config file:, (*1)

'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:, (*2)

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

Or just capture message with full stacktrace, (*3)

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

The Versions

21/10 2016

dev-master

9999999-dev

A Yii2 client for Sentry (http://getsentry.com)

  Sources   Download

MIT

The Requires

 

log yii2 raven sentry

21/10 2016

0.2.0

0.2.0.0

A Yii2 client for Sentry (http://getsentry.com)

  Sources   Download

MIT

The Requires

 

log yii2 raven sentry

18/05 2016

0.1-beta

0.1.0.0-beta

A Yii2 client for Sentry (http://getsentry.com)

  Sources   Download

MIT

The Requires

 

log yii2 raven sentry