Is there some standard way to enable error logging to plain text file or do I have to add try catch blocks manually everywhere like described here?
Use set_exception_handler
set_exception_handler(function (\Exception $e) { ... $di['logger']->error($e->getMessage()); });
Thanks, Óscar Enríquez.