diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-05-13 08:13:31 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-05-13 08:28:10 +0200 |
commit | 061fb79e5c26ec1cf3432dda8c439a167bfc4e1d (patch) | |
tree | 07b01fa84ffbe60c550d2e7f7a535060be9f4fba /lib/log.php | |
parent | 31ad43f9221899b2379b3b72e43270b17fa9f881 (diff) | |
download | nextcloud-server-061fb79e5c26ec1cf3432dda8c439a167bfc4e1d.tar.gz nextcloud-server-061fb79e5c26ec1cf3432dda8c439a167bfc4e1d.zip |
Use the constants from OC_Log
Diffstat (limited to 'lib/log.php')
-rw-r--r-- | lib/log.php | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/lib/log.php b/lib/log.php index 3bedcd4ed36..fc190f1378b 100644 --- a/lib/log.php +++ b/lib/log.php @@ -19,12 +19,6 @@ namespace OC; */ class Log { - const DEBUG=0; - const INFO=1; - const WARN=2; - const ERROR=3; - const FATAL=4; - const NOTICE=5; const CRITICAL=6; const ALERT=7; @@ -37,7 +31,7 @@ class Log { * @return null */ public function emergency($message, array $context = array()) { - $this->log(self::FATAL, $message, $context); + $this->log(\OC_Log::FATAL, $message, $context); } /** @@ -76,7 +70,7 @@ class Log { * @return null */ public function error($message, array $context = array()) { - $this->log(self::ERROR, $message, $context); + $this->log(\OC_Log::ERROR, $message, $context); } /** @@ -90,7 +84,7 @@ class Log { * @return null */ public function warning($message, array $context = array()) { - $this->log(self::WARN, $message, $context); + $this->log(\OC_Log::WARN, $message, $context); } /** @@ -114,7 +108,7 @@ class Log { * @return null */ public function info($message, array $context = array()) { - $this->log(self::INFO, $message, $context); + $this->log(\OC_Log::INFO, $message, $context); } /** @@ -125,7 +119,7 @@ class Log { * @return null */ public function debug($message, array $context = array()) { - $this->log(self::DEBUG, $message, $context); + $this->log(\OC_Log::DEBUG, $message, $context); } /** |