bossit / yii2-sentry-logger
Yii2 SDK for Sentry (https://sentry.io)
Installs: 2 819
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:extension
Requires
- php: ^7.1
- sentry/sdk: ^2.0
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-11-18 20:30:30 UTC
README
Install
The preferred way to install this component is through composer.
$ composer require bossit/yii2-sentry-logger:^1.0
Usage
The preferred way is to setup the components into our Application's configuration array:
'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => SentryTarget::class, 'dsn' => '_YOUR_KEY_', 'levels' => ['error', 'warning'], 'logVars' => [], 'except' => [ 'yii\web\HttpException:404', ], ], ], ],
That's it, you are ready to use it as Yii2 components.