Yii Logging Library 2.2 and targets

Yii Logging Library version 2.2.0 was released. In this version:

  • Add optional $levels parameter to Target constructor allowing log level filtering at instantiation
  • Add ext-psr to conflict section in composer.json

All targets were updated as well to allow $levels in constructor. Additionally:

  • File Target 3.1.0 added categories, except and exportInterval setters to default config and replaced rotate by rename to rotate by copy.
  • Syslog Target 2.1.0 removed dead code that checked case when syslog() returned false.
  • DB Target 1.1.0 bumped minimal required PHP version to 8.1.