Monolog JsonFormatter is not formatting my code?
<p>I've read a lots of questions here and read some documentation. But Still don't understand how to format a JSON value with monolog. </p>

<p>Here my code that is not working:</p>

<p><code>php
$formatter = new JsonFormatter();
$log-&gt;addInfo($formatter-&gt;format(['foo' =&gt; 'bar']));
</code></p>

<p>The output is always in one line instead of in a formatted way.</p>

<p><code>bash
[2016-03-02 07:45:57] parameters.INFO: {"foo":"bar"}  [] []
</code></p>