4 include_once
'./libs/composer/vendor/autoload.php';
5 include_once __DIR__.
'/public/class.ilLogLevel.php';
36 return $this->
getLogger()->isHandling($a_level);
41 return $this->
getLogger()->log($a_level, $a_message);
46 return $this->
log(print_r($a_variable,TRUE), $a_level);
51 return $this->
getLogger()->debug($a_message,$a_context);
54 public function info($a_message)
56 return $this->
getLogger()->info($a_message);
61 return $this->
getLogger()->notice($a_message);
66 return $this->
getLogger()->warning($a_message);
69 public function error($a_message)
71 return $this->
getLogger()->error($a_message);
79 public function alert($a_message)
81 return $this->
getLogger()->alert($a_message);
87 return $this->
getLogger()->emergency($a_message);
106 include_once
'./Services/Logging/classes/public/class.ilLogLevel.php';
112 $this->
getLogger()->log($a_level, $a_message);
121 $this->
getLogger()->debug(
"Language (".$a_lang_key.
"): topic -".$a_topic.
"- not present");
130 public function logStack($a_level = null, $a_message =
'')
132 if(is_null($a_level))
137 include_once
'./Services/Logging/classes/public/class.ilLogLevel.php';
145 throw new \Exception($a_message);
148 $this->
getLogger()->log($a_level, $a_message.
"\n" . $ex->getTraceAsString());
160 $this->
getLogger()->log($a_level,
'Memory usage: ');
writeLanguageLog($a_topic, $a_lang_key)
Write language log.
logStack($a_level=null, $a_message='')
log stack trace
dump($a_variable, $a_level=ilLogLevel::INFO)
debug($a_message, $a_context=array())
log($a_message, $a_level=ilLogLevel::INFO)
Injects memory_get_peak_usage in all records.
getLogger()
Get logger instance.
write($a_message, $a_level=ilLogLevel::INFO)
write log message
__construct(Logger $logger)
writeMemoryPeakUsage($a_level)
Write memory peak usage Automatically called at end of script.
Create styles array
The data for the language used.
isHandling($a_level)
Check whether current logger is handling a log level.
Component logger with individual log levels by component id.