ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilLogLevel.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
16{
17 const DEBUG = 100;
18 const INFO = 200;
19 const NOTICE = 250;
20 const WARNING = 300;
21 const ERROR = 400;
22 const CRITICAL = 500;
23 const ALERT = 550;
24 const EMERGENCY = 600;
25
26 const OFF = 1000;
27
28
29
30 public static function getLevels()
31 {
32 return array(
34 self::INFO,
35 self::NOTICE,
36 self::WARNING,
37 self::ERROR,
38 self::CRITICAL,
39 self::ALERT,
40 self::EMERGENCY,
41 self::OFF
42 );
43
44 }
45
46
51 public static function getLevelOptions()
52 {
53 global $lng;
54
55 return array(
56 self::DEBUG => $lng->txt('log_level_debug'),
57 self::INFO => $lng->txt('log_level_info'),
58 self::NOTICE => $lng->txt('log_level_notice'),
59 self::WARNING => $lng->txt('log_level_warning'),
60 self::ERROR => $lng->txt('log_level_error'),
61 self::CRITICAL => $lng->txt('log_level_critical'),
62 self::ALERT => $lng->txt('log_level_alert'),
63 self::EMERGENCY => $lng->txt('log_level_emergency'),
64 self::OFF => $lng->txt('log_level_off')
65 );
66
67 }
68}
69
70
71?>
Logging factory.
static getLevelOptions()
Get log level options.
static getLevels()
const DEBUG
global $lng
Definition: privfeed.php:40