Skip to content

Commit

Permalink
update to stack
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 18, 2018
1 parent 03f870c commit 8b7748b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Log/LogManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __construct($app)
public function stack(array $channels, $channel = null)
{
return new Logger(
$this->createAggregateDriver(compact('channels', 'channel')),
$this->createStackDriver(compact('channels', 'channel')),
$this->app['events']
);
}
Expand Down Expand Up @@ -216,12 +216,12 @@ protected function createCustomDriver(array $config)
}

/**
* Create a aggregate log driver instance.
* Create an aggregate log driver instance.
*
* @param array $config
* @return \Psr\Log\LoggerInterface
*/
protected function createAggregateDriver(array $config)
protected function createStackDriver(array $config)
{
$handlers = collect($config['channels'])->flatMap(function ($channel) {
return $this->channel($channel)->getHandlers();
Expand Down

0 comments on commit 8b7748b

Please sign in to comment.