4 include_once
'./libs/composer/vendor/autoload.php';
5 include_once __DIR__ .
'/public/class.ilLogLevel.php';
35 return $this->
getLogger()->isHandling($a_level);
40 return $this->
getLogger()->log($a_level, $a_message);
45 return $this->
log(print_r($a_variable,
true), $a_level);
50 return $this->
getLogger()->debug($a_message, $a_context);
53 public function info($a_message)
55 return $this->
getLogger()->info($a_message);
60 return $this->
getLogger()->notice($a_message);
65 return $this->
getLogger()->warning($a_message);
68 public function error($a_message)
70 return $this->
getLogger()->error($a_message);
78 public function alert($a_message)
80 return $this->
getLogger()->alert($a_message);
86 return $this->
getLogger()->emergency($a_message);
105 include_once
'./Services/Logging/classes/public/class.ilLogLevel.php';
110 $this->
getLogger()->log($a_level, $a_message);
119 $this->
getLogger()->debug(
"Language (" . $a_lang_key .
"): topic -" . $a_topic .
"- not present");
128 public function logStack($a_level = null, $a_message =
'')
130 if (is_null($a_level)) {
134 include_once
'./Services/Logging/classes/public/class.ilLogLevel.php';
141 throw new \Exception($a_message);
143 $this->
getLogger()->log($a_level, $a_message .
"\n" . $ex->getTraceAsString());
155 $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.