symfony / monolog-bundle

Symfony Monolog Bundle

Home Page:symfony.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatibility with monolog 3.x

TiMESPLiNTER opened this issue · comments

I wanted to use this bundle with monolog 3.x. But this major version of monolog introduced a new object called LogRecord which is used in the HandlerInterface method declarations instead of array.

All the handlers and formatters in this bundle are therefore not compatible with monolog/monolog 3.x.

Either we need to fix the signature (should be easy) or exclude ^3.0 in composer.json.

For other people who have the same issue: you can as a workaround, explicitly set the dependency version of monolog/monolog to ^2.9.1 in your composer.json

All the handlers and formatters in this bundle are therefore not compatible with monolog/monolog 3.x.

This bundle does not contain any handlers and formatters.