Skip to content

Commit ec39750

Browse files
author
MegaXLR
committed
Merge branch 'master' of github.com:KABBOUCHI/laravel-logger-discord-channel
Signed-off-by: MegaXLR <[email protected]>
2 parents 2250da5 + 3917c0d commit ec39750

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ Add the new driver type in your `config/logging.php` configuration
1717
'driver' => 'custom',
1818
'via' => KABBOUCHI\LoggerDiscordChannel\DiscordLogger::class,
1919
'webhook' => 'https://discordapp.com/api/webhooks/.....',
20-
'level' => 'DEBUG'
20+
'level' => 'DEBUG',
21+
'role_id' => null, // role to tag in the error
2122
],
2223
],
23-
24-
// role to tag in the error
25-
'discord' => [
26-
'role_id' => '',
27-
],
28-
```

src/DiscordHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class DiscordHandler extends AbstractProcessingHandler
2929
* @param bool $bubble
3030
* @param null $roleId
3131
*/
32-
public function __construct($webhook, $name, $subname = '', $level = Logger::DEBUG, $bubble = true, $roleId=null)
32+
public function __construct($webhook, $name, $subname = '', $level = Logger::DEBUG, $bubble = true, $roleId = null)
3333
{
3434
$this->name = $name;
3535
$this->subname = $subname;

0 commit comments

Comments
 (0)