From 08ec3624a15e597fef3a4414f75b3482a160cea1 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Fri, 28 Nov 2014 13:44:36 +1300 Subject: #6622 Logger refactoring: use the container to get the log level --- core/Log.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'core/Log.php') diff --git a/core/Log.php b/core/Log.php index 4a047965c9..f9c628c1a5 100644 --- a/core/Log.php +++ b/core/Log.php @@ -184,10 +184,16 @@ class Log extends Singleton self::$instance = $instance; } - public function __construct($logMessageFormat, $logToFilePath) + /** + * @param string $logMessageFormat + * @param string $logToFilePath + * @param int $logLevel + */ + public function __construct($logMessageFormat, $logToFilePath, $logLevel) { $this->logMessageFormat = $logMessageFormat; $this->logToFilePath = $logToFilePath; + $this->currentLogLevel = $logLevel; } /** -- cgit v1.2.3