title: Monolog, how to log PHP array into console?
body: <p>I am using the browser handler to log message into JS console</p>
  
  <pre><code>require_once 'vendor/autoload.php';
  
  use Monolog\Logger;
  use Monolog\Handler\BrowserConsoleHandler;
  
  $log = new Logger('name');
  $log-&gt;pushHandler(new BrowserConsoleHandler);
  
  $data = array(1,2,3,4);
  
  // add records to the log
  $log-&gt;addWarning('Foo');
  </code></pre>
  
  <p>I am wondering, is it possible to log array such as <code>$data</code> into the console which reassemble the array content?</p>