Hello,
The issue is that the Log facade refers to the logger using 'log' as the registered service name in Illuminate\Support\Facades\Log , but the registered service name is 'Psr\Log\LoggerInterface' in Laravel\Lumen\Application.
This seems to be solved in Lumen v5.0.3. But now the storage folder path is wrong... You need to move the storage folder into the public folder in order to make it work... I hope this will be solved in the next release...
zefredz
A quick hack here.
change app\Exceptions\Handler.php
public function report(Exception $e) {
return parent::report($e);
}
to
public function report(Exception $e) {
file_put_contents(storage_path('logs/lumen.log'), (string) $e, FILE_APPEND);
return;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community