nfacha / dicord-log-target
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
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: 2025-04-16 06:42:24 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\*', ], ], ],