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';
47 $this->enabled = ILIAS_LOG_ENABLED;
51 $this->storage =
new ilSetting(
'logging');
62 if (self::$instance) {
63 return self::$instance;
65 return self::$instance =
new self();
76 include_once
'./Services/Logging/classes/class.ilLogComponentLevels.php';
78 foreach ($levels as
$level) {
79 if ($level->getComponentId() == $a_component_id) {
80 if ($level->getLevel()) {
81 return $level->getLevel();
107 return ILIAS_LOG_DIR;
112 return ILIAS_LOG_FILE;
130 $this->level = $a_level;
139 $this->cache_level = $a_level;
157 $this->cache = $a_status;
171 $this->memory_usage = $a_stat;
215 $this->browser = $a_stat;
225 $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)
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.