Sentry2 Logger for Yii2
The preferred way to install this extension is through composer.
Either run
php composer.phar require ctala/yii2-sentry2-logger
Once the extension is installed, simply use it in your code by :
'log' => [
'targets' => [
[
'class' => 'ctala\Sentry2\SentryTarget',
'levels' => ['error'],
'dsn' => "YOURDSN",
'environment' => "prod"
],
],
],