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 3352e99 commit 86fca1bCopy full SHA for 86fca1b
src/LogManager.php
@@ -52,12 +52,13 @@ public function stack(array $channels, $channel = null)
52
* Attempt to get the log from the local cache.
53
*
54
* @param string $name
55
+ * @param array|null $config
56
* @return \Psr\Log\LoggerInterface
57
*/
- protected function get($name)
58
+ protected function get($name, ?array $config = null)
59
{
60
try {
- 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) {
62
return $this->channels[$name] = $this->tap($name, new Logger($logger, $this->app['events']));
63
});
64
} catch (Throwable $e) {
0 commit comments