4 include_once
'./Services/Logging/classes/public/class.ilLogLevel.php';
5 include_once
'./Services/Administration/classes/class.ilSetting.php';
6 include_once
'./Services/Logging/interfaces/interface.ilLoggingSettings.php';
45 $this->enabled = ILIAS_LOG_ENABLED;
49 $this->storage =
new ilSetting(
'logging');
62 return self::$instance;
64 return self::$instance =
new self();
75 include_once
'./Services/Logging/classes/class.ilLogComponentLevels.php';
79 if($level->getComponentId() == $a_component_id)
81 if($level->getLevel())
83 return $level->getLevel();
109 return ILIAS_LOG_DIR;
114 return ILIAS_LOG_FILE;
132 $this->level = $a_level;
141 $this->cache_level = $a_level;
159 $this->cache = $a_status;
173 $this->memory_usage = $a_stat;
219 $this->browser = $a_stat;
229 $this->browser_users = $users;
setCacheLevel($a_level)
Set cache level.
getLevelByComponent($a_component_id)
Get level by component.
isMemoryUsageEnabled()
Check if loggin of memory usage is enabled.
setLevel($a_level)
Set log level.
isBrowserLogEnabled()
Check if browser log is enabled.
enableMemoryUsage($a_stat)
Enable logging of memory usage.
setBrowserUsers(array $users)
Create styles array
The data for the language used.
static getInstance()
Get instance.
enableCaching($a_status)
Enable caching.
enableBrowserLog($a_stat)
Enable browser log.
isBrowserLogEnabledForUser($a_login)
Check if browser log is enabled for user.
__construct()
Singleton contructor.
isEnabled()
Check if logging is enabled.
getCacheLevel()
Get cache level.