Skip to content

Commit 86fca1b

Browse files
committed
fix: [LogManager] update for Laravel 8
1 parent 3352e99 commit 86fca1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LogManager.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ public function stack(array $channels, $channel = null)
5252
* Attempt to get the log from the local cache.
5353
*
5454
* @param string $name
55+
* @param array|null $config
5556
* @return \Psr\Log\LoggerInterface
5657
*/
57-
protected function get($name)
58+
protected function get($name, ?array $config = null)
5859
{
5960
try {
60-
return $this->channels[$name] ?? with($this->resolve($name), function ($logger) use ($name) {
61+
return $this->channels[$name] ?? with($this->resolve($name, $config), function ($logger) use ($name) {
6162
return $this->channels[$name] = $this->tap($name, new Logger($logger, $this->app['events']));
6263
});
6364
} catch (Throwable $e) {

0 commit comments

Comments
 (0)