Conditions | 5 |
Paths | 2 |
Total Lines | 3 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
41 | public function log(string $level, string $message, array $context = null){ // @todo: loglevel bitmask |
||
42 | if((array_key_exists($level, $this::LEVELS) && $this::LEVELS[$level] >= $this::LEVELS[$this->options->minLogLevel]) || (!array_key_exists($level, $this::LEVELS) && !empty($level))){ |
||
43 | $this->__log($level, $message, $context); |
||
44 | } |
||
48 |