intersvyaz / yii-sentry
Sentry component and LogRoute for Yii1
Installs: 76 609
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 11
Forks: 14
Open Issues: 0
Requires
- php: >=5.5.0
- bower-asset/raven-js: ^3.26
- sentry/sentry: ^1.8
- yiisoft/yii: ~1.1.15
Requires (Dev)
- phpunit/phpunit: ~4.5
README
Sentry component and log route for Yii framework.
Requirements
- Yii Framework > 1.1.15 (Have not test any other frameworks)
- Sentry Account or Your own Sentry server
Download
composer require intersvyaz/yii-sentry
Configure
main.php:
... 'preload' => [ ... 'sentry', ], ... 'components' => [ 'sentry' => [ 'class' => Intersvyaz\YiiSentry\SentryComponent::class, 'dsn' => 'https://X1:X2@host.com/2', 'useRavenJs' => true, 'ravenJsPlugins' => ['jquery'], 'enabled' => !YII_DEBUG, ], ... 'log' => [ 'class' => 'CLogRouter', 'routes' => [ ... [ 'class' => Intersvyaz\YiiSentry\SentryLogRoute::class, 'levels' => 'error, warning', 'except' => 'exception.CHttpException.404, exception.CHttpException.400, exception.CHttpException.403', ], ], ], ], ...