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
Package info
github.com/nfacha/yii2-discord-log-target
Type:yii2-extension
pkg:composer/nfacha/dicord-log-target
dev-master
2020-05-15 09:09 UTC
Requires
- nopjmp/discord-webhooks: ^0.3.1
- php-curl-class/php-curl-class: ^8.5
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-03-16 09:10:59 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\*', ], ], ],