Skip to content

simonefalcini/SlackTarget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

SlackTarget

Edit logs like this:

'log' => [
    'traceLevel' => YII_DEBUG ? 3 : 0,
    'targets' => [
        [
            'enabled' => !YII_DEBUG,
            'class' => '\simonefalcini\SlackTarget\SlackTarget',
            'channel' => '#channelname',
            'username' => 'Message Sender Name',
            'async' => true,
            'hook' => 'https://hooks.slack.com/services/HOOKPATH',
            'logVars' => [],
            'levels' => ['error', 'warning'],
            'except' => [
                'yii\web\HttpException:404',
                'yii\web\HttpException:400',
                'yii\web\BadRequestHttpException:400',
            ],
        ],
        [
            'class' => 'yii\log\FileTarget',
            'levels' => ['error', 'warning'],
        ],
    ],
],

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages