ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilLoggingSetupSettings Class Reference

Logger settings for setup. More...

+ Inheritance diagram for ilLoggingSetupSettings:
+ Collaboration diagram for ilLoggingSetupSettings:

Public Member Functions

 __construct ()
 
 init ()
 
 isEnabled ()
 Logging enabled. More...
 
 getLogDir ()
 
 getLogFile ()
 
 getLevel ()
 Get log Level. More...
 
 getLevelByComponent ($a_component_id)
 
 getCacheLevel ()
 Get log Level. More...
 
 isCacheEnabled ()
 
 isMemoryUsageEnabled ()
 
 isBrowserLogEnabled ()
 
 isBrowserLogEnabledForUser ($a_login)
 
 getBrowserLogUsers ()
 

Private Attributes

 $enabled = false
 
 $log_dir = ''
 
 $log_file = ''
 

Detailed Description

Logger settings for setup.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 13 of file class.ilLoggingSetupSettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilLoggingSetupSettings::__construct ( )

Definition at line 20 of file class.ilLoggingSetupSettings.php.

21  {
22  }

Member Function Documentation

◆ getBrowserLogUsers()

ilLoggingSetupSettings::getBrowserLogUsers ( )

Implements ilLoggingSettings.

Definition at line 103 of file class.ilLoggingSetupSettings.php.

References array.

104  {
105  return array();
106  }
Create styles array
The data for the language used.

◆ getCacheLevel()

ilLoggingSetupSettings::getCacheLevel ( )

Get log Level.

Returns
type

Implements ilLoggingSettings.

Definition at line 77 of file class.ilLoggingSetupSettings.php.

References ilLogLevel\INFO.

78  {
79  include_once './Services/Logging/classes/public/class.ilLogLevel.php';
80  return ilLogLevel::INFO;
81  }

◆ getLevel()

ilLoggingSetupSettings::getLevel ( )

Get log Level.

Returns
type

Implements ilLoggingSettings.

Definition at line 62 of file class.ilLoggingSetupSettings.php.

References ilLogLevel\INFO.

Referenced by getLevelByComponent().

63  {
64  include_once './Services/Logging/classes/public/class.ilLogLevel.php';
65  return ilLogLevel::INFO;
66  }
+ Here is the caller graph for this function:

◆ getLevelByComponent()

ilLoggingSetupSettings::getLevelByComponent (   $a_component_id)

Implements ilLoggingSettings.

Definition at line 68 of file class.ilLoggingSetupSettings.php.

References getLevel().

69  {
70  return $this->getLevel();
71  }
+ Here is the call graph for this function:

◆ getLogDir()

ilLoggingSetupSettings::getLogDir ( )

Implements ilLoggingSettings.

Definition at line 48 of file class.ilLoggingSetupSettings.php.

References $log_dir.

◆ getLogFile()

ilLoggingSetupSettings::getLogFile ( )

Implements ilLoggingSettings.

Definition at line 53 of file class.ilLoggingSetupSettings.php.

References $log_file.

◆ init()

ilLoggingSetupSettings::init ( )

Definition at line 24 of file class.ilLoggingSetupSettings.php.

References $enabled, $ilIliasIniFile, and string.

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  }
Add rich text string
$ilIliasIniFile
INIFile Parser.

◆ isBrowserLogEnabled()

ilLoggingSetupSettings::isBrowserLogEnabled ( )

Implements ilLoggingSettings.

Definition at line 93 of file class.ilLoggingSetupSettings.php.

94  {
95  return false;
96  }

◆ isBrowserLogEnabledForUser()

ilLoggingSetupSettings::isBrowserLogEnabledForUser (   $a_login)

Implements ilLoggingSettings.

Definition at line 98 of file class.ilLoggingSetupSettings.php.

99  {
100  return false;
101  }

◆ isCacheEnabled()

ilLoggingSetupSettings::isCacheEnabled ( )

Implements ilLoggingSettings.

Definition at line 83 of file class.ilLoggingSetupSettings.php.

84  {
85  return false;
86  }

◆ isEnabled()

ilLoggingSetupSettings::isEnabled ( )

Logging enabled.

Returns
type

Implements ilLoggingSettings.

Definition at line 43 of file class.ilLoggingSetupSettings.php.

References $enabled.

◆ isMemoryUsageEnabled()

ilLoggingSetupSettings::isMemoryUsageEnabled ( )

Implements ilLoggingSettings.

Definition at line 88 of file class.ilLoggingSetupSettings.php.

89  {
90  return false;
91  }

Field Documentation

◆ $enabled

ilLoggingSetupSettings::$enabled = false
private

Definition at line 15 of file class.ilLoggingSetupSettings.php.

Referenced by init(), and isEnabled().

◆ $log_dir

ilLoggingSetupSettings::$log_dir = ''
private

Definition at line 16 of file class.ilLoggingSetupSettings.php.

Referenced by getLogDir().

◆ $log_file

ilLoggingSetupSettings::$log_file = ''
private

Definition at line 17 of file class.ilLoggingSetupSettings.php.

Referenced by getLogFile().


The documentation for this class was generated from the following file: