Layer for Yii framework for communication with Sentry logging API
Yii Sentry is composer library so you can install the latest version with:
php composer.phar require tatarko/yii-sentry
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
),
)