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');
60 if (self::$instance) {
61 return self::$instance;
63 return self::$instance =
new self();
74 include_once
'./Services/Logging/classes/class.ilLogComponentLevels.php';
76 foreach ($levels as
$level) {
77 if ($level->getComponentId() == $a_component_id) {
78 if ($level->getLevel()) {
79 return $level->getLevel();
105 return ILIAS_LOG_DIR;
110 return ILIAS_LOG_FILE;
128 $this->level = $a_level;
137 $this->cache_level = $a_level;
155 $this->cache = $a_status;
169 $this->memory_usage = $a_stat;
213 $this->browser = $a_stat;
223 $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.