nfacha/dicord-log-target

There is no license information available for the latest version (dev-master) of this package.

Discord WebHook Log Target for Yii2

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 1

Type:yii2-extension

pkg:composer/nfacha/dicord-log-target

dev-master 2020-05-15 09:09 UTC

This package is auto-updated.

Last update: 2025-10-16 08:06:39 UTC


README

Add the following to your application components:

'log'                  => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets'    => [
                [
                    'class'          => DiscordLogTarget::class,
                    'webhookUrl'     => 'https://discordapp.com/api/webhooks/<WebhookURL>>',
                    'levels'         => [ 'error' ],
                    'exportInterval' => 1,
                    'maskVars'       => [ '_SERVER', '_COOKIE' ],
                    'except'         => [
                        'yii\web\HttpException:404',
                        'yii\web\HttpException:400',
                        'yii\web\HttpException:403',
                        'yii\i18n\*',
                    ],
                ],
            ],