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