We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I created a simple route
Route::get('/error', function () { abort(404, 'My Error Page'); });
When I hit the route, nothing gets logged.
Here is the binding LoggerServiceProvider.php app('router')->after('Prettus\RequestLogger\Filters\ResponseLogger');
ResponseLogger.php public function filter(Request $request, Response $response)
filter function is never called.
I see two ways of catching errors in laravel - http://laravel.com/docs/master/errors#handling-errors as well as http://laravel.com/docs/master/middleware#terminable-middleware
The first one, I dont know, and doubt, that the request/response information will be available.
The second one looks promising, however, http://laravel.com/api/5.0/Illuminate/Routing/Router.html doesnt expose a "terminate()" method, it only exposes middlewhere.
Its fairly important for me, to have logs that include error results.
Thanks for taking a look!
The text was updated successfully, but these errors were encountered:
Merge pull request andersao#1 from kei4eva4/master
4265a56
Update RequestInterpolation.php
No branches or pull requests
I created a simple route
Route::get('/error', function () {
abort(404, 'My Error Page');
});
When I hit the route, nothing gets logged.
Here is the binding
LoggerServiceProvider.php
app('router')->after('Prettus\RequestLogger\Filters\ResponseLogger');
ResponseLogger.php
public function filter(Request $request, Response $response)
filter function is never called.
I see two ways of catching errors in laravel - http://laravel.com/docs/master/errors#handling-errors as well as http://laravel.com/docs/master/middleware#terminable-middleware
The first one, I dont know, and doubt, that the request/response information will be available.
The second one looks promising, however,
http://laravel.com/api/5.0/Illuminate/Routing/Router.html doesnt expose a "terminate()" method, it only exposes middlewhere.
Its fairly important for me, to have logs that include error results.
Thanks for taking a look!
The text was updated successfully, but these errors were encountered: