I consulted these materials before posting this:
https://github.com/doctrine/mongodb-odm/blob/master/UPGRADE-2.0.md
https://github.com/doctrine/mongodb-odm/blob/master/CHANGELOG-2.0.md
https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/2.0/reference/logging.html
| Q | A
|------------ | ------
| BC Break | yes
| Version | 2.0.0-beta1
Doctrine\ODM\MongoDB\Configuration::setLoggerCallable is no longer available and it is not clear how to replace it. There is no mention in UPGRADE notes or CHANGELOG and documentation does not exist.
Thanks for reporting this! We've noticed a couple of other BC breaks as well, which means that we'll need to do another pass to make sure we document all deprecations and removals.
I played around with roave/backward-compatibility-check this morning and will try to use that to figure out what else we missed.
Closing in favour of #2009 where I finally got to running roave/backward-compatibility-check.
whats the preferred approach now for logging?
The APM features of the MongoDB driver should be used to log commands that are run. The Symfony bundle for MongoDB ODM already incorporates this into the Symfony profiler. If not using Symfony, you can use the Doctrine\ODM\MongoDB\APM\CommandLogger class and base your logic on that.
Most helpful comment
Thanks for reporting this! We've noticed a couple of other BC breaks as well, which means that we'll need to do another pass to make sure we document all deprecations and removals.
I played around with
roave/backward-compatibility-checkthis morning and will try to use that to figure out what else we missed.