| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class LogHandler extends AbstractProcessingHandler |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var \Psr\Log\LoggerInterface |
||
| 18 | */ |
||
| 19 | protected $logger; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param \Psr\Log\LoggerInterface $logger |
||
| 23 | * @param bool|int $level |
||
| 24 | * @param bool $bubble |
||
| 25 | */ |
||
| 26 | public function __construct(LoggerInterface $logger, $level = Logger::DEBUG, $bubble = true) |
||
| 27 | { |
||
| 28 | parent::__construct($level, $bubble); |
||
| 29 | |||
| 30 | $this->logger = $logger; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param array $record |
||
| 35 | * |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | protected function write(array $record): void |
||
| 41 | } |
||
| 42 | } |
||
| 43 |