title: How to log multiline entries with monolog like a formatted array?
body: <p>I am trying to log an array with <code>monolog</code> in <code>symfony</code>.</p>
  
  <pre><code>$logger = $this-&gt;get('logger');
  $logger-&gt;info(=print_R($user,true));
  </code></pre>
  
  <p>the output i get is not formatted as a print_r would be expected. It logs it all on one line.</p>
  
  <p>I do not have any monolog settings in my <code>config.yml</code> and suspect this may be the issue.</p>
  
  <p>How can I log a <code>print_r(array)</code> using monolog so it displays formatted in a <code>tail -f</code>?</p>