Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 953 Bytes

File metadata and controls

37 lines (30 loc) · 953 Bytes

Yii Sentry extension

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