Skip to content

bossit/yii2-sentry-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-sentry-logger

Latest Stable Version Build Status Total Downloads

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages