AbstractLogger.php
6 years ago
InvalidArgumentException.php
6 years ago
LogLevel.php
6 years ago
LoggerAwareInterface.php
6 years ago
LoggerAwareTrait.php
6 years ago
LoggerInterface.php
6 years ago
LoggerTrait.php
6 years ago
NullLogger.php
6 years ago
index.php
7 years ago
LoggerAwareTrait.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | namespace MailPoetVendor\Psr\Log; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | /** |
| 9 | * Basic Implementation of LoggerAwareInterface. |
| 10 | */ |
| 11 | trait LoggerAwareTrait |
| 12 | { |
| 13 | /** |
| 14 | * The logger instance. |
| 15 | * |
| 16 | * @var LoggerInterface |
| 17 | */ |
| 18 | protected $logger; |
| 19 | /** |
| 20 | * Sets a logger. |
| 21 | * |
| 22 | * @param LoggerInterface $logger |
| 23 | */ |
| 24 | public function setLogger(\MailPoetVendor\Psr\Log\LoggerInterface $logger) |
| 25 | { |
| 26 | $this->logger = $logger; |
| 27 | } |
| 28 | } |
| 29 |