I applied the Laravel app to heroku following the official guide. He says change APP_LOG=errorlogwhat I did.
I also tried two different versions of this, the commented line is a 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 cannot see anything. I look at both papertrail and the CLI commandheroku logs --tail --app {appname}
source
share