2 require_once(
'./Services/Logging/classes/class.ilLog.php');
3 require_once(
'./Services/Init/classes/class.ilIniFile.php');
4 require_once(
'./Services/WebAccessChecker/classes/class.ilWACLogDummy.php');
5 require_once(
'./Services/WebAccessChecker/classes/class.ilWebAccessChecker.php');
46 $instance =
new self(
$ilIliasIniFile->readVariable(
'log',
'path'), self::WAC_LOG,
'WAC');
50 $instance->setPid($key);
51 self::$instances[$key] = $instance;
56 return self::$instances[$key];
63 parent::write(
'WebAccessChecker Request ' . str_repeat(
'#', 50));
64 parent::write(
'PID: ' . $this->
getPid());
65 if (isset(
$_SERVER[
'HTTP_USER_AGENT'])) {
66 parent::write(
'User-Agent: ' .
$_SERVER[
'HTTP_USER_AGENT']);
68 if (isset(
$_SERVER[
'HTTP_COOKIE'])) {
69 parent::write(
'Cookies: ' .
$_SERVER[
'HTTP_COOKIE']);
72 parent::write(
'User_ID: ' . $ilUser->getId());
75 foreach ($this->
getStack() as $msg) {
86 public function write($a_msg, $a_log_level = null) {
87 $this->stack[] = $a_msg;
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
write($a_msg, $a_log_level=null)
static isUseSeperateLogfile()
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'