Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.
/ yii-sentry Public archive
forked from intersvyaz/yii-sentry

Sentry component and LogRoute for Yii1

License

Notifications You must be signed in to change notification settings

skyeng/yii-sentry

 
 

Repository files navigation

Yii-Sentry

Sentry component and log route for Yii framework.

Requirements

Download

composer require intersvyaz/yii-sentry

Configure

main.php:

...
'preload' => [
    ...
    'sentry',
],
...
'components' => [
    'sentry' => [
		'class' => Intersvyaz\YiiSentry\SentryComponent::class,
		'dsn' => 'https://X1:X2@host.com/2',
		'useRavenJs' => true,
		'ravenJsPlugins' => ['jquery'],
		'enabled' => !YII_DEBUG,
	],
    ...
    'log' => [
        'class' => 'CLogRouter',
        'routes' => [
             ...
            [
				'class' => Intersvyaz\YiiSentry\SentryLogRoute::class,
				'levels' => 'error, warning',
				'except' => 'exception.CHttpException.404, exception.CHttpException.400, exception.CHttpException.403',
			],
		],
    ],
],
...

About

Sentry component and LogRoute for Yii1

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.9%
  • PHP 11.1%