mongodb/node-mongodb-native — pull request #765 by fabriziomoscon (2012-11-03 23:00:18+00:00)
Title: Improve logger.debug for command

Hi,

I spent few hours to have a working debug function. The logger is not documented at all apart from here:
http://stackoverflow.com/questions/12692339/how-to-enable-debug-on-node-js-and-mongodb-native-driver

so I wrote a little example on how to use the debugger. Since it was passing only the binary object as second callback parameter I decided to modify it to become an object with json and binary property, to make it more useful for development purposes.

Please let me know if the documentation is OK or you want me to add something else