Skip to content

3.22.0

Latest

Choose a tag to compare

@spryker-release-bot spryker-release-bot released this 15 Sep 06:52

Included commits: 3.21.0...3.22.0

Breaking Changes

  • Changed LogProcessorPluginInterface::__invoke() to accept and return \Monolog\LogRecord|array instead of a strictly typed array - custom log processor plugins that type-hint array $data must be updated to handle LogRecord objects under Monolog 3.

Fixes

  • Fixed LevelFlushBufferHandler to prevent a fatal error under Monolog 3 by resolving Monolog\Level enum instances to their integer value.
  • Fixed LoggerFactory::createInstanceIfNotExists() to reindex the handler list via array_values() before passing it to MonologLogger.

Adjustments

  • Adjusted AuditLogBufferHandler, AuditLogDataCollector, TagFilterBufferedStreamHandler, AbstractQueueHandler, and all built-in processors (EnvironmentProcessor, GuzzleBodyProcessor, RequestProcessor, ResponseProcessor, ServerProcessor, AuditLogMetaDataProcessor) to support both array and \Monolog\LogRecord log records for Monolog 3 compatibility.