vendredi 24 novembre 2017

Laravel logs in Heroku not showing up

I've deployed a Laravel app to heroku by following the official guide. It says to change APP_LOG=errorlog, which I've done.

I've also tried two different versions of this, the commented line being the variation.

$this->app->configureMonologUsing(function($monolog){ // $monolog->pushHandler(new \Monolog\Handler\SyslogHandler('papertrail')); $monolog->pushHandler(new \Monolog\Handler\StreamHandler('php://stderr', \Monolog\Logger::WARNING)); });

If I use Log::error('something') I'm not seeing anything. I'm looking in both papertrail, and the CLI command heroku logs --tail --app {appname}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire