Why errors from console tasks are not logged. For example Exception on php warning:
[ErrorException]
Notice: Undefined offset: 1 in /var/www/project/vendor/doctrine/lib/Doctrine/ORM/Query.php line 298
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.
As a solution: I enclose all process function in try..catch block and log the backtrace manually.
Is anyone know how to enable or configure logging in console tasks. I think it must be somewhere.