The preferred way to install this component is through composer.
$ composer require bossit/yii2-sentry-logger:^1.0
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.