Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
37 | 2 | public function log($level, $message, array $context = array()) |
|
38 | { |
||
39 | // Doesn't log everything in not debug context |
||
40 | 2 | if ($this->debug || \in_array($level, [LogLevel::CRITICAL, LogLevel::ERROR])) { |
|
41 | 2 | echo '[' . date('Y-m-d H:i:s') . '][' . $level . '] ' . $message ."\n"; |
|
42 | } |
||
43 | 2 | } |
|
44 | } |
||
45 |