| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | public function format($level, $message, array $context = array()) |
||
| 14 | { |
||
| 15 | if (is_string($message)) { |
||
| 16 | return $message . ' ' . json_encode($context); |
||
| 17 | } |
||
| 18 | |||
| 19 | // Cannot append encoded context without causing an error, or blocking log4php object renderers. |
||
| 20 | return $message; |
||
| 21 | } |
||
| 22 | } |
||
| 23 |