All notable changes to laravel-http-client-logger
will be documented in this file.
No breaking changes. The only changes are to the development dependencies used for testing and then the minimum Laravel and PHP requirements.
This release flattens the configuration variables. It is suggested to republish the configuration after upgrading.
filtering.always
is renamed tofilter_all
filtering.2xx
is renamed tofilter_2xx
filtering.3xx
is renamed tofilter_3xx
filtering.4xx
is renamed tofilter_4xx
filtering.5xx
is renamed tofilter_5xx
filtering.slow
is renamed tofilter_slow
log_to_channel.enabled
has been removed, instead logging to channel is enabled when a channel is providedlog_to_channel.channel
is renamed tochannel
log_to_disk.enabled
has been removed, instead logging to disk is enabled when a disk is providedlog_to_disk.disk
is renamed todisk
log_to_disk.separate
is renamed todisk_separate_files
log_to_disk.timestamp
is renamed toprefix_timestamp
log_to_disk.filename
is renamed tofilename
The following environment variables have been renamed:
HTTP_CLIENT_LOGGER_FILTERING_ALWAYS
is renamed toHTTP_CLIENT_LOGGER_FILTER_ALL
HTTP_CLIENT_LOGGER_FILTERING_2XX
is renamed toHTTP_CLIENT_LOGGER_FILTER_2XX
HTTP_CLIENT_LOGGER_FILTERING_3XX
is renamed toHTTP_CLIENT_LOGGER_FILTER_3XX
HTTP_CLIENT_LOGGER_FILTERING_4XX
is renamed toHTTP_CLIENT_LOGGER_FILTER_4XX
HTTP_CLIENT_LOGGER_FILTERING_5XX
is renamed toHTTP_CLIENT_LOGGER_FILTER_5XX
HTTP_CLIENT_LOGGER_FILTERING_SLOW
is renamed toHTTP_CLIENT_LOGGER_FILTER_SLOW
HTTP_CLIENT_LOGGER_CHANNEL_LOG_ENABLED
removed in favor ofHTTP_CLIENT_LOGGER_CHANNEL
HTTP_CLIENT_LOGGER_DISK_LOG_ENABLED
removed in favor ofHTTP_CLIENT_LOGGER_DISK
This release includes breaking changes:
HttpLoggerInterface
: Signature changed with the addition of optional array parameter$config
HttpLoggingFilterInterface
: Signature changed with the addition of optional array parameter$config
- Macro
log()
: Signature changed with the addition of optional array parameter$config
- Macro
logWhen()
: Signature changed with the addition of optional array parameter$config
The following changes are required when updating:
- If the parameter
$context['replace']
is provided to any of the methods above this must instead be provided in the newly added$config['replace']
- The same change must be made if the parameter
$context['filename']
has been provided - Any calls to the
log
orlogWhen
macro where logger or filter is provided must add an empty array before the logger parameter due to the new method signature - Any custom implementation of
HttpLoggerInterface
andHttpLoggingFilterInterface
must be refactored to fit the new method signature - Optional: Republish configuration file
- Add Laravel 12 support
- Add PHP 8.4 support
- Add Laravel 11 support
- Add PHP 8.3 support
- Minimum PHP requirement 8.1
- Add support for PHP 8.2
- Minimum Laravel requirement 9.0
- Add support for Laravel 10.*
- Added return types for better IDE completion by @shahruslan in #24
- Append instead of override when writign to a log file by @afiqiqmal in #21
- Add Prefix Config by @afiqiqmal in #20
- Add Laravel 9 support
- Implement new MessageAccessor class by @bilfeldt in #13
- Implement a new logWith-method + a LogAllFilter class and a NullLogger by @bilfeldt in #15
- Apply fixes from StyleCI by @bilfeldt in #11
- Apply fixes from StyleCI by @bilfeldt in #14
- Add unofficial support for Lumen
- Release first stable release
- Flatten configuration (breaking change)
- Add on-demand configuration array (breaking change)
- Fix evaluation of closures in
logWhen
macro - Add environmental variables for filtering options
- Add new filtering option for enabling all logging
- Refactor configuration (breaking change)
- Add logging to a flysystem disk
- Bugfix:
$context
not being passed down when using request macros
- initial release