ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
AbstractLogger.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Psr\Log;
4 
12 abstract class AbstractLogger implements LoggerInterface
13 {
22  public function emergency($message, array $context = array())
23  {
24  $this->log(LogLevel::EMERGENCY, $message, $context);
25  }
26 
38  public function alert($message, array $context = array())
39  {
40  $this->log(LogLevel::ALERT, $message, $context);
41  }
42 
53  public function critical($message, array $context = array())
54  {
55  $this->log(LogLevel::CRITICAL, $message, $context);
56  }
57 
67  public function error($message, array $context = array())
68  {
69  $this->log(LogLevel::ERROR, $message, $context);
70  }
71 
83  public function warning($message, array $context = array())
84  {
85  $this->log(LogLevel::WARNING, $message, $context);
86  }
87 
96  public function notice($message, array $context = array())
97  {
98  $this->log(LogLevel::NOTICE, $message, $context);
99  }
100 
111  public function info($message, array $context = array())
112  {
113  $this->log(LogLevel::INFO, $message, $context);
114  }
115 
124  public function debug($message, array $context = array())
125  {
126  $this->log(LogLevel::DEBUG, $message, $context);
127  }
128 }
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.
Create styles array
The data for the language used.
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.