tatarko / yii-sentry
Layer for Yii framework for communication with Sentry logging API
Installs: 4 166
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- raven/raven: 0.11
- yiisoft/yii: ~1.1
This package is not auto-updated.
Last update: 2025-02-01 19:01:33 UTC
README
Layer for Yii framework for communication with Sentry logging API
Installation
Yii Sentry is composer library so you can install the latest version with:
php composer.phar require tatarko/yii-sentry
Configuration
To your application's config add following:
'components' => array( 'log' => array( 'class' => 'CLogRouter', 'routes' => array( // your other log routers array( 'class' => 'Tatarko\\YiiSentry\\LogRoute', 'levels' => 'error,warning', // 'enabled' => !YII_DEBUG, ), ), ), 'sentry' => array( 'class' => 'Tatarko\\YiiSentry\\Client', 'dsn' => '', // Your's DSN from Sentry ), )