Total Complexity | 7 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 70% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class ConsoleLog extends AbstractLogger |
||
20 | { |
||
21 | 2 | public function __construct() |
|
22 | { |
||
23 | 2 | if (!\defined('STDOUT')) { |
|
24 | \define('STDOUT', fopen('php://stdout', 'wb')); |
||
25 | } |
||
26 | |||
27 | 2 | if (!\defined('STDERR')) { |
|
28 | \define('STDERR', fopen('php://stderr', 'wb')); |
||
29 | } |
||
30 | } |
||
31 | |||
32 | 60 | public function log($level, $message, array $context = []): void |
|
38 | } |
||
39 | } |
||
41 |