ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
23  }

Member Function Documentation

◆ getBrowserLogUsers()

ilLoggingSetupSettings::getBrowserLogUsers ( )

Implements ilLoggingSettings.

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

References array.

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

◆ getCacheLevel()

ilLoggingSetupSettings::getCacheLevel ( )

Get log Level.

Returns
type

Implements ilLoggingSettings.

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

References ilLogLevel\INFO.

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

◆ getLevel()

ilLoggingSetupSettings::getLevel ( )

Get log Level.

Returns
type

Implements ilLoggingSettings.

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

References ilLogLevel\INFO.

Referenced by getLevelByComponent().

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

◆ getLevelByComponent()

ilLoggingSetupSettings::getLevelByComponent (   $a_component_id)

Implements ilLoggingSettings.

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

References getLevel().

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

◆ getLogDir()

ilLoggingSetupSettings::getLogDir ( )

Implements ilLoggingSettings.

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

References $log_dir.

◆ getLogFile()

ilLoggingSetupSettings::getLogFile ( )

Implements ilLoggingSettings.

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

References $log_file.

◆ init()

ilLoggingSetupSettings::init ( )

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

References $enabled, $ilIliasIniFile, and string.

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  }
Add rich text string
The name of the decorator.
$ilIliasIniFile
INIFile Parser.

◆ isBrowserLogEnabled()

ilLoggingSetupSettings::isBrowserLogEnabled ( )

Implements ilLoggingSettings.

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

95  {
96  return FALSE;
97  }

◆ isBrowserLogEnabledForUser()

ilLoggingSetupSettings::isBrowserLogEnabledForUser (   $a_login)

Implements ilLoggingSettings.

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

100  {
101  return FALSE;
102  }

◆ isCacheEnabled()

ilLoggingSetupSettings::isCacheEnabled ( )

Implements ilLoggingSettings.

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

85  {
86  return FALSE;
87  }

◆ isEnabled()

ilLoggingSetupSettings::isEnabled ( )

Logging enabled.

Returns
type

Implements ilLoggingSettings.

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

References $enabled.

◆ isMemoryUsageEnabled()

ilLoggingSetupSettings::isMemoryUsageEnabled ( )

Implements ilLoggingSettings.

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

90  {
91  return FALSE;
92  }

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: