ILIAS  release_8 Revision v8.24
class.ilLoggingSetupSettings.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
5
12{
13 private bool $enabled = false;
14 private string $log_dir = '';
15 private string $log_file = '';
16
17
18 public function init(): void
19 {
20 $ilIliasIniFile = new ilIniFile("./ilias.ini.php");
21 $ilIliasIniFile->read();
22
23 $enabled = $ilIliasIniFile->readVariable('log', 'enabled');
24 $this->enabled = $enabled == '1';
25 $this->log_dir = (string) $ilIliasIniFile->readVariable('log', 'path');
26 $this->log_file = (string) $ilIliasIniFile->readVariable('log', 'file');
27 }
28
33 public function isEnabled(): bool
34 {
35 return $this->enabled;
36 }
37
38 public function getLogDir(): string
39 {
40 return $this->log_dir;
41 }
42
43 public function getLogFile(): string
44 {
45 return $this->log_file;
46 }
47
52 public function getLevel(): int
53 {
54 return ilLogLevel::INFO;
55 }
56
57 public function getLevelByComponent(string $a_component_id): int
58 {
59 return $this->getLevel();
60 }
61
66 public function getCacheLevel(): int
67 {
68 return ilLogLevel::INFO;
69 }
70
71 public function isCacheEnabled(): bool
72 {
73 return false;
74 }
75
76 public function isMemoryUsageEnabled(): bool
77 {
78 return false;
79 }
80
81 public function isBrowserLogEnabled(): bool
82 {
83 return false;
84 }
85
86 public function isBrowserLogEnabledForUser(string $a_login): bool
87 {
88 return false;
89 }
90
91 public function getBrowserLogUsers(): array
92 {
93 return array();
94 }
95}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Logger settings for setup.
getLevelByComponent(string $a_component_id)
$ilIliasIniFile
Definition: imgupload.php:32