1 | <?php |
||
18 | class LogFormatter implements LogFormatterInterface |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Holds this log separator. |
||
23 | * @var string |
||
24 | */ |
||
25 | public $separator = PHP_EOL; |
||
26 | |||
27 | /** |
||
28 | * Interpolates context values into the message placeholders. |
||
29 | * |
||
30 | * Builds a replacement array with braces around the context keys. |
||
31 | * It replaces {foo} with the value from $context['foo']. |
||
32 | * |
||
33 | * @param string $message |
||
34 | * @param array $context |
||
35 | * @return string |
||
36 | */ |
||
37 | 692 | public function interpolate($message, array $context = array()) |
|
58 | |||
59 | /** |
||
60 | * Formats the given log entry. |
||
61 | * |
||
62 | * @param LogEntry $log The log entry to format. |
||
63 | * @return string |
||
64 | */ |
||
65 | 688 | public function format(LogEntry $log) |
|
74 | |||
75 | } |