We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 458d13e commit 0dd9128Copy full SHA for 0dd9128
src/Channels/LogChannel.php
@@ -14,8 +14,18 @@
14
15
class LogChannel extends Channel
16
{
17
+ /**
18
+ * @var string
19
+ */
20
+ protected $level;
21
+
22
+ public function __construct(string $level = 'info')
23
+ {
24
+ $this->level = $level;
25
+ }
26
27
public function report(string $report)
28
- Log::error($report);
29
+ Log::{$this->level}($report);
30
}
31
src/ExceptionNotifyManager.php
@@ -238,7 +238,7 @@ protected function createFeiShuDriver()
238
239
protected function createLogDriver()
240
241
- return new LogChannel();
+ return new LogChannel(config('exception-notify.default.channels.log.level', 'info'));
242
243
244
protected function createMailDriver()
0 commit comments