ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
AbstractLogger.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Psr\Log;
4 
12 abstract class AbstractLogger implements LoggerInterface
13 {
21  public function emergency($message, array $context = array())
22  {
23  $this->log(LogLevel::EMERGENCY, $message, $context);
24  }
25 
36  public function alert($message, array $context = array())
37  {
38  $this->log(LogLevel::ALERT, $message, $context);
39  }
40 
50  public function critical($message, array $context = array())
51  {
52  $this->log(LogLevel::CRITICAL, $message, $context);
53  }
54 
63  public function error($message, array $context = array())
64  {
65  $this->log(LogLevel::ERROR, $message, $context);
66  }
67 
78  public function warning($message, array $context = array())
79  {
80  $this->log(LogLevel::WARNING, $message, $context);
81  }
82 
90  public function notice($message, array $context = array())
91  {
92  $this->log(LogLevel::NOTICE, $message, $context);
93  }
94 
104  public function info($message, array $context = array())
105  {
106  $this->log(LogLevel::INFO, $message, $context);
107  }
108 
116  public function debug($message, array $context = array())
117  {
118  $this->log(LogLevel::DEBUG, $message, $context);
119  }
120 }
critical($message, array $context=array())
Critical conditions.
This is a simple Logger implementation that other Loggers can inherit from.
log($level, $message, array $context=array())
Logs with an arbitrary level.
error($message, array $context=array())
Runtime errors that do not require immediate action but should typically be logged and monitored...
info($message, array $context=array())
Interesting events.
alert($message, array $context=array())
Action must be taken immediately.
Describes a logger instance.
emergency($message, array $context=array())
System is unusable.
warning($message, array $context=array())
Exceptional occurrences that are not errors.
notice($message, array $context=array())
Normal but significant events.
debug($message, array $context=array())
Detailed debug information.