I’ve successfully integrated Doctrine MongoDB module in Zend Framework 2 and now I need to keep track of each query to MongoDB.
Does anybody know how to turn on logging?
I’ve successfully integrated Doctrine MongoDB module in Zend Framework 2 and now I need
Share
I just proposed a pull request on the DoctrineMongoODMModule to integrate the logging configuration option of MongoDB ODM. Hopefully it’ll be merged soon.
You will then only have to add this in the
doctrine-mongo-odm.global.phpfile :The logger_callable will be called for everything there is to log.