Skip to content

Layer for Yii framework for communication with Sentry logging API

License

Notifications You must be signed in to change notification settings

tatarko/yii-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Layer for Yii framework for communication with Sentry logging API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages