ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilLoggingSetupSettings.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once
'./Services/Logging/interfaces/interface.ilLoggingSettings.php'
;
13
class
ilLoggingSetupSettings
implements
ilLoggingSettings
14
{
15
private
$enabled
=
false
;
16
private
$log_dir
=
''
;
17
private
$log_file
=
''
;
18
19
20
public
function
__construct
()
21
{
22
}
23
24
public
function
init
()
25
{
26
$ilIliasIniFile
=
new
ilIniFile
(
"./ilias.ini.php"
);
27
$ilIliasIniFile
->read();
28
29
30
$enabled
=
$ilIliasIniFile
->readVariable(
'log'
,
'enabled'
);
31
$this->enabled = ((
$enabled
==
'1'
) ?
true
:
false
);
32
33
34
35
$this->log_dir = (
string
)
$ilIliasIniFile
->readVariable(
'log'
,
'path'
);
36
$this->log_file = (
string
)
$ilIliasIniFile
->readVariable(
'log'
,
'file'
);
37
}
38
43
public
function
isEnabled
()
44
{
45
return
$this->enabled
;
46
}
47
48
public
function
getLogDir
()
49
{
50
return
$this->log_dir
;
51
}
52
53
public
function
getLogFile
()
54
{
55
return
$this->log_file
;
56
}
57
62
public
function
getLevel
()
63
{
64
include_once
'./Services/Logging/classes/public/class.ilLogLevel.php'
;
65
return
ilLogLevel::INFO
;
66
}
67
68
public
function
getLevelByComponent
($a_component_id)
69
{
70
return
$this->
getLevel
();
71
}
72
77
public
function
getCacheLevel
()
78
{
79
include_once
'./Services/Logging/classes/public/class.ilLogLevel.php'
;
80
return
ilLogLevel::INFO
;
81
}
82
83
public
function
isCacheEnabled
()
84
{
85
return
false
;
86
}
87
88
public
function
isMemoryUsageEnabled
()
89
{
90
return
false
;
91
}
92
93
public
function
isBrowserLogEnabled
()
94
{
95
return
false
;
96
}
97
98
public
function
isBrowserLogEnabledForUser
($a_login)
99
{
100
return
false
;
101
}
102
103
public
function
getBrowserLogUsers
()
104
{
105
return
array
();
106
}
107
}
ilLoggingSetupSettings\getLevelByComponent
getLevelByComponent($a_component_id)
Definition:
class.ilLoggingSetupSettings.php:68
ilLoggingSetupSettings\isBrowserLogEnabledForUser
isBrowserLogEnabledForUser($a_login)
Definition:
class.ilLoggingSetupSettings.php:98
string
Add rich text string
Definition:
05featuredemo.inc.php:117
ilLoggingSetupSettings\getLogDir
getLogDir()
Definition:
class.ilLoggingSetupSettings.php:48
ilLoggingSetupSettings\isBrowserLogEnabled
isBrowserLogEnabled()
Definition:
class.ilLoggingSetupSettings.php:93
ilLoggingSetupSettings\getCacheLevel
getCacheLevel()
Get log Level.
Definition:
class.ilLoggingSetupSettings.php:77
ilLoggingSetupSettings\__construct
__construct()
Definition:
class.ilLoggingSetupSettings.php:20
ilLoggingSetupSettings\$enabled
$enabled
Definition:
class.ilLoggingSetupSettings.php:15
ilLoggingSetupSettings\$log_dir
$log_dir
Definition:
class.ilLoggingSetupSettings.php:16
ilLoggingSetupSettings\init
init()
Definition:
class.ilLoggingSetupSettings.php:24
ilLoggingSetupSettings
Logger settings for setup.
Definition:
class.ilLoggingSetupSettings.php:13
ilLogLevel\INFO
const INFO
Definition:
class.ilLogLevel.php:18
ilLoggingSettings
Definition:
interface.ilLoggingSettings.php:15
ilLoggingSetupSettings\getBrowserLogUsers
getBrowserLogUsers()
Definition:
class.ilLoggingSetupSettings.php:103
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
$ilIliasIniFile
$ilIliasIniFile
Definition:
imagemanager.php:34
ilLoggingSetupSettings\$log_file
$log_file
Definition:
class.ilLoggingSetupSettings.php:17
ilLoggingSetupSettings\isEnabled
isEnabled()
Logging enabled.
Definition:
class.ilLoggingSetupSettings.php:43
ilLoggingSetupSettings\getLevel
getLevel()
Get log Level.
Definition:
class.ilLoggingSetupSettings.php:62
ilLoggingSetupSettings\getLogFile
getLogFile()
Definition:
class.ilLoggingSetupSettings.php:53
ilLoggingSetupSettings\isCacheEnabled
isCacheEnabled()
Definition:
class.ilLoggingSetupSettings.php:83
ilIniFile
INIFile Parser.
Definition:
class.ilIniFile.php:37
ilLoggingSetupSettings\isMemoryUsageEnabled
isMemoryUsageEnabled()
Definition:
class.ilLoggingSetupSettings.php:88
Services
Logging
classes
class.ilLoggingSetupSettings.php
Generated on Sat Jan 18 2025 19:01:33 for ILIAS by
1.8.13 (using
Doxyfile
)