laravel-request-logger icon indicating copy to clipboard operation
laravel-request-logger copied to clipboard

HTTP request logger middleware for Laravel

Results 18 laravel-request-logger issues
Sort by recently updated
recently updated
newest added
trafficstars

Added request content logging and updated the README to fix issue #6

https://github.com/andersao/laravel-request-logger/blob/69779388ffbe174ed50f52845f01c3e4d5331b81/src/Prettus/RequestLogger/Helpers/ResponseInterpolation.php#L84

Class Illuminate\\Contracts\\Http\\Kernel does not exist"

I'm getting this error message seemingly because config('request-logger.exclude') is returning null. [2016-02-25 00:26:48] local.ERROR: exception 'ErrorException' with message 'Invalid argument supplied for foreach()' in /var/www/html/vendor/prettus/laravel-request-logger/src/Prettus/RequestLogger/Middlewares/ResponseLoggerMiddleware.php:44

The following error get generated: > ErrorException in ResponseLoggerMiddleware.php line 44: > Invalid argument supplied for foreach() > in ResponseLoggerMiddleware.php line 44 > at HandleExceptions->handleError('2', 'Invalid argument supplied for foreach()',...

As per the documentation the config file doesn't hold a config variable 'exclude', so it was throwing error in the foreach statement ``` $exclude = config('request-logger.exclude'); if($exclude){ //Added an if...

Is there anyway I can log requests as well?

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...