ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilLoggingSetupSettings.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once './Services/Logging/interfaces/interface.ilLoggingSettings.php';
14 {
15  private $enabled = false;
16  private $log_dir = '';
17  private $log_file = '';
18 
19 
20  public function __construct()
21  {
22  }
23 
24  public function init()
25  {
26  $ilIliasIniFile = new ilIniFile("./ilias.ini.php");
27  $ilIliasIniFile->read();
28 
29 
30  $enabled = $ilIliasIniFile->readVariable('log', 'enabled');
31  $this->enabled = (($enabled == '1') ? true : false);
32 
33 
34 
35  $this->log_dir = (string) $ilIliasIniFile->readVariable('log', 'path');
36  $this->log_file = (string) $ilIliasIniFile->readVariable('log', 'file');
37  }
38 
43  public function isEnabled()
44  {
45  return $this->enabled;
46  }
47 
48  public function getLogDir()
49  {
50  return $this->log_dir;
51  }
52 
53  public function getLogFile()
54  {
55  return $this->log_file;
56  }
57 
62  public function getLevel()
63  {
64  include_once './Services/Logging/classes/public/class.ilLogLevel.php';
65  return ilLogLevel::INFO;
66  }
67 
68  public function getLevelByComponent($a_component_id)
69  {
70  return $this->getLevel();
71  }
72 
77  public function getCacheLevel()
78  {
79  include_once './Services/Logging/classes/public/class.ilLogLevel.php';
80  return ilLogLevel::INFO;
81  }
82 
83  public function isCacheEnabled()
84  {
85  return false;
86  }
87 
88  public function isMemoryUsageEnabled()
89  {
90  return false;
91  }
92 
93  public function isBrowserLogEnabled()
94  {
95  return false;
96  }
97 
98  public function isBrowserLogEnabledForUser($a_login)
99  {
100  return false;
101  }
102 
103  public function getBrowserLogUsers()
104  {
105  return array();
106  }
107 }
Add rich text string
Logger settings for setup.
Create styles array
The data for the language used.
$ilIliasIniFile
INIFile Parser.