<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 24 May 2013 00:10:24 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Derick Rethans: Debugging Connections with the MongoDB PHP driver]]></title>
      <guid>http://www.phpdeveloper.org/news/18873</guid>
      <link>http://www.phpdeveloper.org/news/18873</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has a new post that the developers out there using MongoDB in their applications will find useful - a look at <a href="http://derickrethans.nl/mongodb-debugging.html">debugging your connections</a> with the PHP driver (and what kind of information it can provide).
</p>
<blockquote>
In a previous <a href="http://derickrethans.nl/mongodb-connection-handling.html">article</a> 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::<a href="http://www.php.net/manual/en/mongoclient.getconnections.php">getConnections()</a>, but it provides a bit more information than I have already shown. The other improvement are changes to the <a href="http://www.php.net/manual/en/class.mongolog.php">MongoLog</a> class.
</blockquote>
<p>
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 <a href="http://www.php.net/manual/en/class.mongolog.php">Mongolog</a> logging, the levels of logging it allows and what kind of log messages you can expect it to output.
</p>]]></description>
      <pubDate>Tue, 11 Dec 2012 10:20:13 -0600</pubDate>
    </item>
  </channel>
</rss>
