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:
authorThomas Steur <thomas.steur@googlemail.com>2014-03-25 02:06:02 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-03-25 02:06:02 +0400
commitdbe8a799d7e7fc8417b13ac8838f963d6187a5dc (patch)
tree211a000d9af9ddff863a851a1e89fcbe74d32187 /core/Log.php
parent0ab1d1040899ddf03ba5386a78523e7d2c780442 (diff)
refs #4780 added possibility to enable tracker debug via config, use logger for printing debug messages which allows users to log to screen, file or db
Diffstat (limited to 'core/Log.php')
-rw-r--r--core/Log.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Log.php b/core/Log.php
index b6f8230735..76e59709df 100644
--- a/core/Log.php
+++ b/core/Log.php
@@ -290,7 +290,7 @@ class Log extends Singleton
if ($logLevel >= self::NONE // sanity check
&& $logLevel <= self::VERBOSE
) {
- $this->currentLogLevel = $logLevel;
+ $this->setLogLevel($logLevel);
}
}
}
@@ -355,6 +355,11 @@ class Log extends Singleton
return $writers;
}
+ public function setLogLevel($logLevel)
+ {
+ $this->currentLogLevel = $logLevel;
+ }
+
private function logToFile($level, $tag, $datetime, $message)
{
if (is_string($message)) {