Skip to content

v0.3.0

Compare
Choose a tag to compare
@bilfeldt bilfeldt released this 05 Apr 21:06

Changes

  • 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

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

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 log or logWhen 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 and HttpLoggingFilterInterface must be refactored to fit the new method signature
  • Optional: Republish configuration file