All notable changes to laravel-request-logger
will be documented in this file.
- Because the package now supports both
Correlation-ID
andRequest-ID
then two new database columns needs to be inserted into therequest_logs
table. See the table migration stub for the required changes. - The function
aggregate($request, $response, $date)
has been removed from theRequestLog
model. If you are using this function instead then use thebilfeldt/laravel-route-statistics
package for aggregated statistical logging if needed. - The config
log_context
has been removed. If you are using this config to add Log context, then apply theLogContextMiddleware
from the now required packagebilfeldt/laravel-correlation-id
package for the relevant routes. - The config
header
has been removed. If you are using this config to add the unique request id to the response in theRequest-ID
headerm then do so using your own middleware, or consider (recommended) to instead set theCorrelation-ID
header using theCorrelationIdMiddleware
from the now required packagebilfeldt/laravel-correlation-id
package for the relevant routes.
No breaking changes. The only changes are to the development dependencies used for testing and then the minimum Laravel and PHP requirements.
- Add PHP 8.4 support
- Add config for which model to use in the
RequestLog
modelsuser()
relationship
- Add Laravel 11 compatibility
- Add PHP 8.3 compatibility
- Rely on the
bilfeldt/laravel-correlation-id
package for request and response headers and unique id. - Log both
Correlation-ID
header and the unique Request ID. - Remove dependency on
spatie/laravel-package-tools
- Require PHP 8.2
- Add middleware for adding 'Correlation-ID' header to responses
- Add support for PHP 8.1
- Add support for PHP 8.2
- Minimum PHP requirement 8.2
- Add support for Laravel 10.*
- Minimum Laravel requirement 10.0
- Add Laravel 9 support
- Add PHP 8.1 support
- Exclude the parameter api_token per default from all logs (added to config) #17
- Fix issue when route is undefined: By @woenel in #15
- initial release