Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-11-28 03:44:36 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-11-28 03:44:36 +0300
commit08ec3624a15e597fef3a4414f75b3482a160cea1 (patch)
tree26356fb56eb7b2be27eb3d592f924e77562baffa /core/Log.php
parent95a7aa7427563d77381ceb0d78d5d034ff181637 (diff)
#6622 Logger refactoring: use the container to get the log level
Diffstat (limited to 'core/Log.php')
-rw-r--r--core/Log.php8
1 files changed, 7 insertions, 1 deletions
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;
}
/**