ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLogLevel.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
31{
32 public const DEBUG = 100;
33 public const INFO = 200;
34 public const NOTICE = 250;
35 public const WARNING = 300;
36 public const ERROR = 400;
37 public const CRITICAL = 500;
38 public const ALERT = 550;
39 public const EMERGENCY = 600;
40
41 public const OFF = 1000;
42
43
44
45 public static function getLevels(): array
46 {
47 return array(
49 self::INFO,
50 self::NOTICE,
51 self::WARNING,
52 self::ERROR,
53 self::CRITICAL,
54 self::ALERT,
55 self::EMERGENCY,
56 self::OFF
57 );
58 }
59
60
61 public static function getLevelOptions(): array
62 {
63 global $DIC;
64
65 $lng = $DIC->language();
66 return array(
67 self::DEBUG => $lng->txt('log_level_debug'),
68 self::INFO => $lng->txt('log_level_info'),
69 self::NOTICE => $lng->txt('log_level_notice'),
70 self::WARNING => $lng->txt('log_level_warning'),
71 self::ERROR => $lng->txt('log_level_error'),
72 self::CRITICAL => $lng->txt('log_level_critical'),
73 self::ALERT => $lng->txt('log_level_alert'),
74 self::EMERGENCY => $lng->txt('log_level_emergency'),
75 self::OFF => $lng->txt('log_level_off')
76 );
77 }
78}
Logging factory.
static getLevelOptions()
static getLevels()
global $lng
Definition: privfeed.php:31
global $DIC
Definition: shib_login.php:26