TYPO3  7.6
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 }