ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
25  public function init()
26  {
27  $ilIliasIniFile = new ilIniFile("./ilias.ini.php");
28  $ilIliasIniFile->read();
29 
30 
31  $enabled = $ilIliasIniFile->readVariable('log', 'enabled');
32  $this->enabled = (($enabled == '1') ? TRUE : FALSE);
33 
34 
35 
36  $this->log_dir = (string) $ilIliasIniFile->readVariable('log', 'path');
37  $this->log_file = (string) $ilIliasIniFile->readVariable('log', 'file');
38  }
39 
44  public function isEnabled()
45  {
46  return $this->enabled;
47  }
48 
49  public function getLogDir()
50  {
51  return $this->log_dir;
52  }
53 
54  public function getLogFile()
55  {
56  return $this->log_file;
57  }
58 
63  public function getLevel()
64  {
65  include_once './Services/Logging/classes/public/class.ilLogLevel.php';
66  return ilLogLevel::INFO;
67  }
68 
69  public function getLevelByComponent($a_component_id)
70  {
71  return $this->getLevel();
72  }
73 
78  public function getCacheLevel()
79  {
80  include_once './Services/Logging/classes/public/class.ilLogLevel.php';
81  return ilLogLevel::INFO;
82  }
83 
84  public function isCacheEnabled()
85  {
86  return FALSE;
87  }
88 
89  public function isMemoryUsageEnabled()
90  {
91  return FALSE;
92  }
93 
94  public function isBrowserLogEnabled()
95  {
96  return FALSE;
97  }
98 
99  public function isBrowserLogEnabledForUser($a_login)
100  {
101  return FALSE;
102  }
103 
104  public function getBrowserLogUsers()
105  {
106  return array();
107  }
108 
109 
110 }
111 ?>
Add rich text string
The name of the decorator.
Logger settings for setup.
Create styles array
The data for the language used.
$ilIliasIniFile
INIFile Parser.