lundi 30 novembre 2015

Laravel log errors in production

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?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1lUeIIg
via IFTTT

Aucun commentaire:

Enregistrer un commentaire