News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans:
Debugging Connections with the MongoDB PHP driver
December 11, 2012 @ 10:20:13

Derick Rethans has a new post that the developers out there using MongoDB in their applications will find useful - a look at debugging your connections with the PHP driver (and what kind of information it can provide).

In a previous article I already mentioned that the 1.3 version of the MongoDB driver has improved logging functionality to aid with debugging connection issues. I've already briefly introduced MongoClient::getConnections(), but it provides a bit more information than I have already shown. The other improvement are changes to the MongoLog class.

He includes details on the information that comes back from the MongoDB "getConnections" call including the hash of the connection, the "last ping" time, connection type and a set of tags. He also shows how to enable the Mongolog logging, the levels of logging it allows and what kind of log messages you can expect it to output.

0 comments voice your opinion now!
mongodb driver connection debug mongolog


blog comments powered by Disqus

Similar Posts

Vance Lucas' Blog: NoSQL First Impressions: Object Databases Missed the Boat

DZone.com: Video: PHP 5.3.1, MongoDB and Lithium on Windows 7 / IIS 7

Chris Jones' Blog: Which OCI8 DLL to use in PHP 5.3

Derick Rethans' Blog: What is PHP doing?

Ruslan Yakushev: PHP Troubleshooting in Windows Azure Web Sites


Community Events

Don't see your event here?
Let us know!


release podcast extension unittest library community series opinion symfony security framework laravel introduction threedevsandamaybe api version laravel5 language voicesoftheelephpant interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework