v0.3.0
Changes
- Add on-demand configuration array (breaking change)
- Fix evaluation of closures in
logWhenmacro - Add environmental variables for filtering options
- Add new filtering option for enabling all logging
This release includes breaking changes:
Note that the breaking changes only affects more advanced usage of the package, for most users these breaking changes will require no code change.
HttpLoggerInterface: Signature changed with the addition of optional array parameter$configHttpLoggingFilterInterface: 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
Upgrade path from 0.2.0 => 0.3.0
Details can be found in CHANGELOG.md and below:
- 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
logorlogWhenmacro 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
HttpLoggerInterfaceandHttpLoggingFilterInterfacemust be refactored to fit the new method signature - Optional: Republish configuration file