From 360ca068340e9135dbed62bee87564ec9ddda22b Mon Sep 17 00:00:00 2001 From: ThunderBirdsX3 Date: Thu, 8 Mar 2018 15:56:48 +0700 Subject: [PATCH] Add more config (bubble, permission, locking) to single and daily log. --- src/Illuminate/Log/LogManager.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Log/LogManager.php b/src/Illuminate/Log/LogManager.php index 0a08b627c6ff..a1dfa5ffc22f 100644 --- a/src/Illuminate/Log/LogManager.php +++ b/src/Illuminate/Log/LogManager.php @@ -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 + ) ), ]); } @@ -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 )), ]); }