Skip to content

Commit 13dd516

Browse files
authored
Update README.md
1 parent 379e8d2 commit 13dd516

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ composer require dyanakiev/laravel-logger-discord-channel
99

1010
## Usage
1111

12-
Add the new discord channel type in your `config/logging.php` configuration file, find the channels section and add the discord array within
12+
1. Add the new discord channel type in your `config/logging.php` configuration file, find the channels section and add the discord array within
1313

1414
```php
1515
'channels' => [
@@ -25,6 +25,8 @@ Add the new discord channel type in your `config/logging.php` configuration file
2525
],
2626
],
2727
```
28+
2. Add the new discord channel inside the `stack` channel, its recommended to set `LOG_CHANNEL` to `stack` so you can still have your daily logs when running in production
29+
3. Customize the package settings either directly in the config or in the .env file
2830

2931
## Note
3032
You may need to clear cache after installation if you get `laravel.EMERGENCY: Unable to create configured logger. ... Log [discord] is not defined.` with
@@ -36,5 +38,6 @@ Dont forget to cache the config again after clearing cache if ran on production
3638
php artisan config:cache
3739
```
3840

39-
## Example log
40-
@todo add picture
41+
## Example logs
42+
![demo-error-imessage](./.github/demo-error-message.png)
43+
![demo-info-imessage](./.github/demo-info-message.png)

0 commit comments

Comments
 (0)