4 include_once
'./Services/Logging/lib/vendor/autoload.php';
5 include_once
'./Services/Logging/classes/public/class.ilLogLevel.php';
31 return $this->
getLogger()->log($a_level, $a_message);
36 return $this->
log(print_r($a_variable,TRUE), $a_level);
39 public function debug($a_message, $a_context = array())
41 return $this->
getLogger()->debug($a_message,$a_context);
44 public function info($a_message)
46 return $this->
getLogger()->info($a_message);
51 return $this->
getLogger()->notice($a_message);
56 return $this->
getLogger()->warning($a_message);
59 public function error($a_message)
61 return $this->
getLogger()->error($a_message);
69 public function alert($a_message)
71 return $this->
getLogger()->alert($a_message);
77 return $this->
getLogger()->emergency($a_message);
96 include_once
'./Services/Logging/classes/public/class.ilLogLevel.php';
102 $this->
getLogger()->log($a_level, $a_message);
111 $this->
getLogger()->debug(
"Language (".$a_lang_key.
"): topic -".$a_topic.
"- not present");
120 public function logStack($a_level = null, $a_message =
'')
122 if(is_null($a_level))
127 include_once
'./Services/Logging/classes/public/class.ilLogLevel.php';
135 throw new \Exception($a_message);
138 $this->
getLogger()->log($a_level, $a_message.
"\n" . $ex->getTraceAsString());
150 $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.
Component logger with individual log levels by component id.