ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLoggingSetupSettings Class Reference

Logger settings for setup. More...

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

Public Member Functions

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

Private Attributes

bool $enabled = false
 
string $log_dir = ''
 
string $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

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

Member Function Documentation

◆ getBrowserLogUsers()

ilLoggingSetupSettings::getBrowserLogUsers ( )

Implements ilLoggingSettings.

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

105 : array
106 {
107 return array();
108 }

◆ getCacheLevel()

ilLoggingSetupSettings::getCacheLevel ( )

Get log Level.

Returns
int

Implements ilLoggingSettings.

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

80 : int
81 {
82 return ilLogLevel::INFO;
83 }

References ilLogLevel\INFO.

◆ getLevel()

ilLoggingSetupSettings::getLevel ( )

Get log Level.

Returns
int

Implements ilLoggingSettings.

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

66 : int
67 {
68 return ilLogLevel::INFO;
69 }

References ilLogLevel\INFO.

Referenced by getLevelByComponent().

+ Here is the caller graph for this function:

◆ getLevelByComponent()

ilLoggingSetupSettings::getLevelByComponent ( string  $a_component_id)

Implements ilLoggingSettings.

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

71 : int
72 {
73 return $this->getLevel();
74 }

References getLevel().

+ Here is the call graph for this function:

◆ getLogDir()

ilLoggingSetupSettings::getLogDir ( )

Implements ilLoggingSettings.

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

52 : string
53 {
54 return $this->log_dir;
55 }

References $log_dir.

◆ getLogFile()

ilLoggingSetupSettings::getLogFile ( )

Implements ilLoggingSettings.

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

57 : string
58 {
59 return $this->log_file;
60 }

References $log_file.

◆ init()

ilLoggingSetupSettings::init ( )

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

32 : 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 }
INIFile Parser Early access in init proceess! Avoid further dependencies like logging or other servic...
$ilIliasIniFile
Definition: server.php:37

References $enabled, and $ilIliasIniFile.

◆ isBrowserLogEnabled()

ilLoggingSetupSettings::isBrowserLogEnabled ( )

Implements ilLoggingSettings.

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

95 : bool
96 {
97 return false;
98 }

◆ isBrowserLogEnabledForUser()

ilLoggingSetupSettings::isBrowserLogEnabledForUser ( string  $a_login)

Implements ilLoggingSettings.

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

100 : bool
101 {
102 return false;
103 }

◆ isCacheEnabled()

ilLoggingSetupSettings::isCacheEnabled ( )

Implements ilLoggingSettings.

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

85 : bool
86 {
87 return false;
88 }

◆ isEnabled()

ilLoggingSetupSettings::isEnabled ( )

Logging enabled.

Returns
bool

Implements ilLoggingSettings.

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

47 : bool
48 {
49 return $this->enabled;
50 }

References $enabled.

◆ isMemoryUsageEnabled()

ilLoggingSetupSettings::isMemoryUsageEnabled ( )

Implements ilLoggingSettings.

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

90 : bool
91 {
92 return false;
93 }

Field Documentation

◆ $enabled

bool ilLoggingSetupSettings::$enabled = false
private

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

Referenced by init(), and isEnabled().

◆ $log_dir

string ilLoggingSetupSettings::$log_dir = ''
private

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

Referenced by getLogDir().

◆ $log_file

string ilLoggingSetupSettings::$log_file = ''
private

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

Referenced by getLogFile().


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