Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
12 | public function build(int $logLevel): Logger |
||
13 | { |
||
14 | $logHandler = new StreamHandler(getStdout()->getResource(), $logLevel); |
||
15 | $logHandler->setFormatter(new ConsoleFormatter()); |
||
16 | |||
17 | $logger = new Logger('gitamp'); |
||
18 | $logger->pushHandler($logHandler); |
||
19 | |||
20 | return $logger; |
||
21 | } |
||
23 |