1 | <?php |
||
23 | final class LogHandler |
||
24 | { |
||
25 | /** |
||
26 | * @var LoggerInterface |
||
27 | */ |
||
28 | private $logger; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | private $dontLog; |
||
34 | |||
35 | 8 | public function __construct(LoggerInterface $logger, array $dontLog = []) |
|
40 | |||
41 | 8 | public function __invoke(Throwable $e) |
|
55 | |||
56 | 8 | private function shouldLog(Throwable $e) : bool |
|
66 | |||
67 | 7 | private function resolveLogLevel(Throwable $e) |
|
96 | } |
||
97 |