Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
NullLogger | n/a |
0 / 0 |
n/a |
0 / 0 |
6 | n/a |
0 / 0 |
|||
log | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
trace | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
debug | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
info | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
warn | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
error | n/a |
0 / 0 |
n/a |
0 / 0 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Log; |
6 | |
7 | use PeServer\Core\Log\ILogger; |
8 | |
9 | /** |
10 | * なんも出力しないロガー。 |
11 | * |
12 | * @codeCoverageIgnore |
13 | */ |
14 | final class NullLogger implements ILogger |
15 | { |
16 | #region ILogger |
17 | |
18 | public function log(int $level, int $traceIndex, $message, ...$parameters): void |
19 | { |
20 | //NOP |
21 | } |
22 | public function trace($message, ...$parameters): void |
23 | { |
24 | //NOP |
25 | } |
26 | public function debug($message, ...$parameters): void |
27 | { |
28 | //NOP |
29 | } |
30 | public function info($message, ...$parameters): void |
31 | { |
32 | //NOP |
33 | } |
34 | public function warn($message, ...$parameters): void |
35 | { |
36 | //NOP |
37 | } |
38 | public function error($message, ...$parameters): void |
39 | { |
40 | //NOP |
41 | } |
42 | |
43 | #endregion |
44 | } |