| 1 | <?php |
||
| 14 | final class LogHandler extends Handler |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var LoggerInterface |
||
| 18 | */ |
||
| 19 | private $logger; |
||
| 20 | |||
| 21 | public function __construct(LoggerInterface $logger) |
||
| 25 | |||
| 26 | public function handle(): int |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Translates an error exception into a log level. |
||
| 42 | */ |
||
| 43 | private function translateError(\ErrorException $exception): string |
||
| 73 | } |
||
| 74 |