diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-04-25 16:22:28 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-04-26 11:45:52 +0300 |
commit | 38a90130ce425d531a804dff591df4a883de3154 (patch) | |
tree | d579e7442832672ab2987f9c9ecf62e79ca09a8d /lib/public/Util.php | |
parent | 12c5db90322f61d4d48e1bb534bb94382d17e317 (diff) |
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r-- | lib/public/Util.php | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php index 9ffa55e2dfd..0e32d8473a5 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -57,11 +57,25 @@ namespace OCP; * @since 4.0.0 */ class Util { - // consts for Logging + /** + * @deprecated 14.0.0 use \OCP\ILogger::DEBUG + */ const DEBUG=0; + /** + * @deprecated 14.0.0 use \OCP\ILogger::INFO + */ const INFO=1; + /** + * @deprecated 14.0.0 use \OCP\ILogger::WARN + */ const WARN=2; + /** + * @deprecated 14.0.0 use \OCP\ILogger::ERROR + */ const ERROR=3; + /** + * @deprecated 14.0.0 use \OCP\ILogger::FATAL + */ const FATAL=4; /** \OCP\Share\IManager */ @@ -115,7 +129,7 @@ class Util { * @since ....0.0 - parameter $level was added in 7.0.0 * @deprecated 8.2.0 use logException of \OCP\ILogger */ - public static function logException( $app, \Exception $ex, $level = \OCP\Util::FATAL ) { + public static function logException( $app, \Exception $ex, $level = ILogger::FATAL) { \OC::$server->getLogger()->logException($ex, ['app' => $app]); } |