summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 17:38:27 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 17:38:27 +0200
commitd0554bef069b29affa95ec3c2bf78af637703a90 (patch)
treef28c25fef284dc6b61425917e79a812c85274597 /lib
parent7ded9cf520f74b595bc0f8939ac59249b47ccbc9 (diff)
downloadnextcloud-server-d0554bef069b29affa95ec3c2bf78af637703a90.tar.gz
nextcloud-server-d0554bef069b29affa95ec3c2bf78af637703a90.zip
finish porting of the LOG calls or the apps to the public api
Diffstat (limited to 'lib')
-rw-r--r--lib/public/util.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 8c52ff28b83..3e647fc6605 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -32,6 +32,13 @@ namespace OCP;
class Util {
+ // consts for Logging
+ const DEBUG=0;
+ const INFO=1;
+ const WARN=2;
+ const ERROR=3;
+ const FATAL=4;
+
/**
* send an email
*
@@ -57,7 +64,7 @@ class Util {
* @param string $message
* @param int level
*/
- public static function writelog($app, $message, $level) {
+ public static function writeLog($app, $message, $level) {
// call the internal log class
\OC_LOG::write($app, $message, $level);