From eb6d493fb5b4c56ade47768bffdc361a0f2cb0e8 Mon Sep 17 00:00:00 2001 From: "Paula V. Quispe" Date: Fri, 16 Sep 2016 09:34:02 -0400 Subject: [PATCH] HOR-1876 --- gulliver/system/class.monologProvider.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gulliver/system/class.monologProvider.php b/gulliver/system/class.monologProvider.php index bd5eb4642..f0b519211 100644 --- a/gulliver/system/class.monologProvider.php +++ b/gulliver/system/class.monologProvider.php @@ -29,6 +29,9 @@ class MonologProvider public $output = "<%level%> %datetime% %channel% %level_name%: %message% %context% %extra%\n"; public $dateFormat = "M d H:i:s"; public $numOfKeepFiles = 60; + public $levelDebug = 100; + public $bubble = true; + public $filePermission = 0775; public function __construct ($channel, $fileLog) { @@ -36,7 +39,7 @@ class MonologProvider $this->formatter = new Monolog\Formatter\LineFormatter($this->output, $this->dateFormat); //Set Routating Handler - $this->streamRoutating = new Monolog\Handler\RotatingFileHandler($fileLog, $this->numOfKeepFiles); + $this->streamRoutating = new Monolog\Handler\RotatingFileHandler($fileLog, $this->numOfKeepFiles, $this->levelDebug, $this->bubble, $this->filePermission); $this->streamRoutating->setFormatter($this->formatter); //Create the channel and register the Logger with StreamRoutating @@ -71,7 +74,7 @@ class MonologProvider public function setConfig ($channel, $fileLog) { //Set Routating Handler - $this->streamRoutating = new Monolog\Handler\RotatingFileHandler($fileLog, $this->numOfKeepFiles); + $this->streamRoutating = new Monolog\Handler\RotatingFileHandler($fileLog, $this->numOfKeepFiles, $this->levelDebug, $this->bubble, $this->filePermission); $this->streamRoutating->setFormatter($this->formatter); //Create the channel and register the Logger with StreamRoutating