mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-23 22:42:38 +01:00
Revert "Simplified formatBatchNewlines()"
This reverts commit 4f91d1c58fe208d09ba4a8a14f75b0f02752e0d1.
This commit is contained in:
parent
4f91d1c58f
commit
b748794bba
@ -93,7 +93,13 @@ class JsonFormatter implements FormatterInterface
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user