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