summaryrefslogtreecommitdiffstats
path: root/lib/private/log.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-07-03 14:06:40 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-07-03 18:00:16 +0200
commitd3ac73c0c9419750c65d3ccb8f0b0c25edacf34f (patch)
tree6517676c49da188ae4ee832245236fe0e1e25cf3 /lib/private/log.php
parent68fd74963eda73fe0e3173cde495c284ea1fd8f4 (diff)
downloadnextcloud-server-d3ac73c0c9419750c65d3ccb8f0b0c25edacf34f.tar.gz
nextcloud-server-d3ac73c0c9419750c65d3ccb8f0b0c25edacf34f.zip
Remove OC_Log
Diffstat (limited to 'lib/private/log.php')
-rw-r--r--lib/private/log.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/private/log.php b/lib/private/log.php
index dd5cb6efbb9..3c0e7b45d1b 100644
--- a/lib/private/log.php
+++ b/lib/private/log.php
@@ -79,7 +79,7 @@ class Log implements ILogger {
* @param array $context
*/
public function emergency($message, array $context = array()) {
- $this->log(\OC_Log::FATAL, $message, $context);
+ $this->log(\OCP\Util::FATAL, $message, $context);
}
/**
@@ -92,7 +92,7 @@ class Log implements ILogger {
* @param array $context
*/
public function alert($message, array $context = array()) {
- $this->log(\OC_Log::ERROR, $message, $context);
+ $this->log(\OCP\Util::ERROR, $message, $context);
}
/**
@@ -104,7 +104,7 @@ class Log implements ILogger {
* @param array $context
*/
public function critical($message, array $context = array()) {
- $this->log(\OC_Log::ERROR, $message, $context);
+ $this->log(\OCP\Util::ERROR, $message, $context);
}
/**
@@ -115,7 +115,7 @@ class Log implements ILogger {
* @param array $context
*/
public function error($message, array $context = array()) {
- $this->log(\OC_Log::ERROR, $message, $context);
+ $this->log(\OCP\Util::ERROR, $message, $context);
}
/**
@@ -128,7 +128,7 @@ class Log implements ILogger {
* @param array $context
*/
public function warning($message, array $context = array()) {
- $this->log(\OC_Log::WARN, $message, $context);
+ $this->log(\OCP\Util::WARN, $message, $context);
}
/**
@@ -138,7 +138,7 @@ class Log implements ILogger {
* @param array $context
*/
public function notice($message, array $context = array()) {
- $this->log(\OC_Log::INFO, $message, $context);
+ $this->log(\OCP\Util::INFO, $message, $context);
}
/**
@@ -150,7 +150,7 @@ class Log implements ILogger {
* @param array $context
*/
public function info($message, array $context = array()) {
- $this->log(\OC_Log::INFO, $message, $context);
+ $this->log(\OCP\Util::INFO, $message, $context);
}
/**
@@ -160,7 +160,7 @@ class Log implements ILogger {
* @param array $context
*/
public function debug($message, array $context = array()) {
- $this->log(\OC_Log::DEBUG, $message, $context);
+ $this->log(\OCP\Util::DEBUG, $message, $context);
}
@@ -172,7 +172,7 @@ class Log implements ILogger {
* @param array $context
*/
public function log($level, $message, array $context = array()) {
- $minLevel = min($this->config->getValue('loglevel', \OC_Log::WARN), \OC_Log::ERROR);
+ $minLevel = min($this->config->getValue('loglevel', \OCP\Util::WARN), \OCP\Util::ERROR);
$logCondition = $this->config->getValue('log.condition', []);
if (isset($context['app'])) {
@@ -185,7 +185,7 @@ class Log implements ILogger {
if(!empty($logCondition)
&& isset($logCondition['apps'])
&& in_array($app, $logCondition['apps'], true)) {
- $minLevel = \OC_Log::DEBUG;
+ $minLevel = \OCP\Util::DEBUG;
}
} else {
@@ -233,7 +233,7 @@ class Log implements ILogger {
// if log condition is satisfied change the required log level to DEBUG
if($this->logConditionSatisfied) {
- $minLevel = \OC_Log::DEBUG;
+ $minLevel = \OCP\Util::DEBUG;
}
if ($level >= $minLevel) {