In my Laravel 5.1 application, I've set APP_DEBUG
to false for my production environment. However, I'd still like to see errors (exceptions) being logged to the log file.
In app/Exceptions/Handler.php
I see the following method:
public function report(Exception $e)
{
return parent::report($e);
}
where the parent::report
method uses LoggerInterface
to log errors. So I expect this already being taken care of for me. Nevertheless I don't see exceptions in my logfile. Only the "Whoops, looks like something went wrong." message.
How can I achieve this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire