tatarko/yii-sentry

Layer for Yii framework for communication with Sentry logging API

v1.0.1 2015-11-11 08:18 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:06:34 UTC


README

Layer for Yii framework for communication with Sentry logging API

Latest Stable Version Code Climate

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
	),
)