title: Symfony 2 Logging exceptions in console
body: <p>Why errors from console tasks are not logged.
  For example Exception on php warning:</p>
  
  <p><code>[ErrorException]<br>
    Notice: Undefined offset: 1 in /var/www/project/vendor/doctrine/lib/Doctrine/ORM/Query.php line 298</code></p>
  
  <p>I see what printed in stdout, but nothing logged to logs. (I use console commands in cron).
  In web these exceptions logged with backtrace, which in this situation is more informational than just this exception.</p>
  
  <p>As a solution: I enclose all process function in try..catch block and log the backtrace manually.</p>
  
  <p>Is anyone know how to enable or configure logging in console tasks.
  I think it must be somewhere.</p>