AbstractLogger.php
4 years ago
InvalidArgumentException.php
4 years ago
LogLevel.php
4 years ago
LoggerAwareInterface.php
4 years ago
LoggerAwareTrait.php
4 years ago
LoggerInterface.php
4 years ago
LoggerTrait.php
4 years ago
NullLogger.php
4 years ago
index.php
3 years ago
AbstractLogger.php
39 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Psr\Log; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | abstract class AbstractLogger implements LoggerInterface |
| 5 | { |
| 6 | public function emergency($message, array $context = array()) |
| 7 | { |
| 8 | $this->log(LogLevel::EMERGENCY, $message, $context); |
| 9 | } |
| 10 | public function alert($message, array $context = array()) |
| 11 | { |
| 12 | $this->log(LogLevel::ALERT, $message, $context); |
| 13 | } |
| 14 | public function critical($message, array $context = array()) |
| 15 | { |
| 16 | $this->log(LogLevel::CRITICAL, $message, $context); |
| 17 | } |
| 18 | public function error($message, array $context = array()) |
| 19 | { |
| 20 | $this->log(LogLevel::ERROR, $message, $context); |
| 21 | } |
| 22 | public function warning($message, array $context = array()) |
| 23 | { |
| 24 | $this->log(LogLevel::WARNING, $message, $context); |
| 25 | } |
| 26 | public function notice($message, array $context = array()) |
| 27 | { |
| 28 | $this->log(LogLevel::NOTICE, $message, $context); |
| 29 | } |
| 30 | public function info($message, array $context = array()) |
| 31 | { |
| 32 | $this->log(LogLevel::INFO, $message, $context); |
| 33 | } |
| 34 | public function debug($message, array $context = array()) |
| 35 | { |
| 36 | $this->log(LogLevel::DEBUG, $message, $context); |
| 37 | } |
| 38 | } |
| 39 |