mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-25 18:46:14 +02:00
Revert "Simplified formatBatchNewlines()"
This reverts commit 4f91d1c58f.
This commit is contained in:
@@ -93,7 +93,13 @@ class JsonFormatter implements FormatterInterface
|
|||||||
*/
|
*/
|
||||||
protected function formatBatchNewlines(array $records)
|
protected function formatBatchNewlines(array $records)
|
||||||
{
|
{
|
||||||
return implode(PHP_EOL, array_map($records, array($this, 'format')));
|
$instance = $this;
|
||||||
|
|
||||||
|
array_walk($records, function(&$value, $key) use ($instance) {
|
||||||
|
$value = $instance->format($value);
|
||||||
|
});
|
||||||
|
|
||||||
|
return implode("\n", $records);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user