Skip to content

Commit

Permalink
Add more config (bubble, permission, locking) to single and daily log. (
Browse files Browse the repository at this point in the history
  • Loading branch information
ThunderBirdsX3 authored and taylorotwell committed Mar 8, 2018
1 parent 7bd8c6e commit 4d31633
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Illuminate/Log/LogManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ protected function createSingleDriver(array $config)
{
return new Monolog($this->parseChannel($config), [
$this->prepareHandler(
new StreamHandler($config['path'], $this->level($config))
new StreamHandler(
$config['path'], $this->level($config),
$config['bubble'] ?? true, $config['permission'] ?? null, $config['locking'] ?? false
)
),
]);
}
Expand All @@ -258,7 +261,8 @@ protected function createDailyDriver(array $config)
{
return new Monolog($this->parseChannel($config), [
$this->prepareHandler(new RotatingFileHandler(
$config['path'], $config['days'] ?? 7, $this->level($config)
$config['path'], $config['days'] ?? 7, $this->level($config),
$config['bubble'] ?? true, $config['permission'] ?? null, $config['locking'] ?? false
)),
]);
}
Expand Down

0 comments on commit 4d31633

Please sign in to comment.