ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilLoggingSetupSettings.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
26 {
27  private bool $enabled = false;
28  private string $log_dir = '';
29  private string $log_file = '';
30 
31 
32  public function init(): void
33  {
34  $ilIliasIniFile = new ilIniFile("./ilias.ini.php");
35  $ilIliasIniFile->read();
36 
37  $enabled = $ilIliasIniFile->readVariable('log', 'enabled');
38  $this->enabled = $enabled == '1';
39  $this->log_dir = (string) $ilIliasIniFile->readVariable('log', 'path');
40  $this->log_file = (string) $ilIliasIniFile->readVariable('log', 'file');
41  }
42 
47  public function isEnabled(): bool
48  {
49  return $this->enabled;
50  }
51 
52  public function getLogDir(): string
53  {
54  return $this->log_dir;
55  }
56 
57  public function getLogFile(): string
58  {
59  return $this->log_file;
60  }
61 
66  public function getLevel(): int
67  {
68  return ilLogLevel::INFO;
69  }
70 
71  public function getLevelByComponent(string $a_component_id): int
72  {
73  return $this->getLevel();
74  }
75 
80  public function getCacheLevel(): int
81  {
82  return ilLogLevel::INFO;
83  }
84 
85  public function isCacheEnabled(): bool
86  {
87  return false;
88  }
89 
90  public function isMemoryUsageEnabled(): bool
91  {
92  return false;
93  }
94 
95  public function isBrowserLogEnabled(): bool
96  {
97  return false;
98  }
99 
100  public function isBrowserLogEnabledForUser(string $a_login): bool
101  {
102  return false;
103  }
104 
105  public function getBrowserLogUsers(): array
106  {
107  return array();
108  }
109 }
Logger settings for setup.
$ilIliasIniFile
Definition: server.php:35
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getLevelByComponent(string $a_component_id)