Support the ongoing development of Laravel.io →
Installation Configuration IOC
Last updated 2 years ago.
0

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

Last updated 9 years ago.
0

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;
}
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

yfktn yfktn Joined 19 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.