3declare(strict_types=1);
33 $this->enabled = (bool) ILIAS_LOG_ENABLED;
37 $this->storage =
new ilSetting(
'logging');
43 if (self::$instance) {
46 return self::$instance =
new self();
56 foreach ($levels as
$level) {
57 if (
$level->getComponentId() == $a_component_id) {
90 return ILIAS_LOG_FILE;
100 $this->level = $a_level;
105 $this->cache_level = $a_level;
115 $this->cache = $a_status;
125 $this->memory_usage = $a_stat;
152 $this->browser = $a_stat;
162 $this->browser_users = $users;
enableMemoryUsage(bool $a_stat)
enableCaching(bool $a_status)
getLevelByComponent(string $a_component_id)
Get level by component.
setBrowserUsers(array $users)
isBrowserLogEnabledForUser(string $a_login)
isEnabled()
Check if logging is enabled.
setCacheLevel(int $a_level)
static ilLoggingDBSettings $instance
enableBrowserLog(bool $a_stat)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...