ILIAS  release_8 Revision v8.24
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 11 of file class.ilLoggingSetupSettings.php.

Member Function Documentation

◆ getBrowserLogUsers()

ilLoggingSetupSettings::getBrowserLogUsers ( )

Implements ilLoggingSettings.

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

91 : array
92 {
93 return array();
94 }

◆ getCacheLevel()

ilLoggingSetupSettings::getCacheLevel ( )

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.

◆ getLevel()

ilLoggingSetupSettings::getLevel ( )

Get log Level.

Returns
int

Implements ilLoggingSettings.

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

52 : int
53 {
54 return ilLogLevel::INFO;
55 }

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 57 of file class.ilLoggingSetupSettings.php.

57 : int
58 {
59 return $this->getLevel();
60 }

References getLevel().

+ Here is the call graph for this function:

◆ getLogDir()

ilLoggingSetupSettings::getLogDir ( )

Implements ilLoggingSettings.

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

38 : string
39 {
40 return $this->log_dir;
41 }

References $log_dir.

◆ getLogFile()

ilLoggingSetupSettings::getLogFile ( )

Implements ilLoggingSettings.

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

43 : string
44 {
45 return $this->log_file;
46 }

References $log_file.

◆ init()

ilLoggingSetupSettings::init ( )

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

18 : void
19 {
20 $ilIliasIniFile = new ilIniFile("./ilias.ini.php");
21 $ilIliasIniFile->read();
22
23 $enabled = $ilIliasIniFile->readVariable('log', 'enabled');
24 $this->enabled = $enabled == '1';
25 $this->log_dir = (string) $ilIliasIniFile->readVariable('log', 'path');
26 $this->log_file = (string) $ilIliasIniFile->readVariable('log', 'file');
27 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ilIliasIniFile
Definition: imgupload.php:32

References $enabled, and $ilIliasIniFile.

◆ isBrowserLogEnabled()

ilLoggingSetupSettings::isBrowserLogEnabled ( )

Implements ilLoggingSettings.

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

81 : bool
82 {
83 return false;
84 }

◆ isBrowserLogEnabledForUser()

ilLoggingSetupSettings::isBrowserLogEnabledForUser ( string  $a_login)

Implements ilLoggingSettings.

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

86 : bool
87 {
88 return false;
89 }

◆ isCacheEnabled()

ilLoggingSetupSettings::isCacheEnabled ( )

Implements ilLoggingSettings.

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

71 : bool
72 {
73 return false;
74 }

◆ isEnabled()

ilLoggingSetupSettings::isEnabled ( )

Logging enabled.

Returns
bool

Implements ilLoggingSettings.

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

33 : bool
34 {
35 return $this->enabled;
36 }

References $enabled.

◆ isMemoryUsageEnabled()

ilLoggingSetupSettings::isMemoryUsageEnabled ( )

Implements ilLoggingSettings.

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

76 : bool
77 {
78 return false;
79 }

Field Documentation

◆ $enabled

bool ilLoggingSetupSettings::$enabled = false
private

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

Referenced by init(), and isEnabled().

◆ $log_dir

string ilLoggingSetupSettings::$log_dir = ''
private

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

Referenced by getLogDir().

◆ $log_file

string ilLoggingSetupSettings::$log_file = ''
private

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

Referenced by getLogFile().


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