Skip to content

Commit 8f84ba8

Browse files
authored
Update README.md
1 parent cc67655 commit 8f84ba8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ Add the new discord channel type in your `config/logging.php` configuration file
1313

1414
```php
1515
'channels' => [
16-
'discord' => [
17-
'driver' => 'custom',
18-
'via' => dyanakiev\LoggerDiscordChannel\DiscordLogger::class,
19-
'webhook' => env('DISCORD_LOG_WEBHOOK', false), // E.g. https://discordapp.com/api/webhooks/...
20-
'level' => env('DISCORD_LOG_LEVEL', 'debug'), // You can choose from emergency, alert, critical, error, warning, notice, info and debug
21-
'environment' => env('DISCORD_LOG_ENVIRONMENT', 'production'), // Enable logging for environment production, staging' or local
22-
'role_id' => env('DISCORD_LOG_TAG_ROLE_ID', false), // Tag a discord role
23-
],
16+
'discord' => [
17+
'driver' => 'custom',
18+
'via' => dyanakiev\LoggerDiscordChannel\DiscordLogger::class,
19+
'suffix' => env('DISCORD_LOG_SUFFIX','Laravel Log'), // Message title suffix
20+
'webhook' => env('DISCORD_LOG_WEBHOOK', false), // e.g. https://discordapp.com/api/webhooks/...
21+
'level' => env('DISCORD_LOG_LEVEL', 'debug'), // You can choose from: emergency, alert, critical, error, warning, notice, info and debug
22+
'context' => env('DISCORD_LOG_CONTEXT', false), // Enable this if you want to receive the full context of an error, usually useless
23+
'environment' => env('DISCORD_LOG_ENVIRONMENT', 'production'), // Enable logging only for environment ['production', 'staging', 'local']
24+
'message' => env('DISCORD_LOG_MESSAGE', false), // Here you can put extra message or tag role or person via @personName
25+
],
2426
],
2527
```
2628

0 commit comments

Comments
 (0)