bossit / yii2-sentry-logger
There is no license information available for the latest version (1.0.2) of this package.
Yii2 SDK for Sentry (https://sentry.io)
Package info
github.com/bossit/yii2-sentry-logger
Type:extension
pkg:composer/bossit/yii2-sentry-logger
1.0.2
2020-09-18 11:44 UTC
Requires
- php: ^7.1
- sentry/sdk: ^2.0
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-02-18 23:21:34 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.