| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class StandardFormatter implements FormatterInterface |
||
| 15 | { |
||
| 16 | const FORMAT = "[%datetime%] %level%: %message%\n%contextPlaceholder%"; |
||
| 17 | const CONTEXT_FORMAT = "Context:\n%context%\n"; |
||
| 18 | const DATETIME_FORMAT = 'Y-m-d H:i:s.u'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var DumperInterface |
||
| 22 | */ |
||
| 23 | protected $dumper; |
||
| 24 | |||
| 25 | public function __construct(DumperInterface $dumper) |
||
| 28 | } |
||
| 29 | |||
| 30 | protected function prepareContextPart(Record $record) |
||
| 42 | ] |
||
| 43 | ); |
||
| 44 | } |
||
| 45 | |||
| 46 | public function format(Record $record) |
||
| 63 |