Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nfacha/yii2-discord-log-target
https://github.com/nfacha/yii2-discord-log-target
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nfacha/yii2-discord-log-target
- Owner: nfacha
- Created: 2020-05-15T09:02:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T20:18:49.000Z (over 4 years ago)
- Last Synced: 2024-11-13T14:55:30.177Z (about 2 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Add the following to your application components:
```php
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => DiscordLogTarget::class,
'webhookUrl' => 'https://discordapp.com/api/webhooks/>',
'levels' => [ 'error' ],
'exportInterval' => 1,
'maskVars' => [ '_SERVER', '_COOKIE' ],
'except' => [
'yii\web\HttpException:404',
'yii\web\HttpException:400',
'yii\web\HttpException:403',
'yii\i18n\*',
],
],
],```