<?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>Sat, 25 May 2013 18:28:27 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Importance of logging in web development]]></title>
      <guid>http://www.phpdeveloper.org/news/15225</guid>
      <link>http://www.phpdeveloper.org/news/15225</link>
      <description><![CDATA[<p>
<i>Sameer Borate</i> has <a href="http://www.codediesel.com/software/logging-in-web-development/">posted some of his thoughts</a> about logging in PHP applications and how it can be one of the most important things you do.
</p>
<blockquote>
Software development is an exercise in managing complexity, and the more tools and methods we have at our disposal the easier it gets. One of my favorites is logging - recording important code execution points that I think are important, especially during debugging. [...] But what information does one log and what does one keep out. This usually depends on what kind of application you are developing.
</blockquote>
<p>
He gives an example of logging on database intensive applications - storing the query execution state - complete with a simple example of an "addUser" method that logs any issues caused by the query execution. If you're not using a framework that has it's own logger, he recommends a few: <a href="http://github.com/katzgrau/KLogger">KLogger</a>, <a href="http://logging.apache.org/log4php/">Log4PHP</a> and the <a href="http://framework.zend.com/manual/en/zend.log.html">Zend_Log</a> component of the Zend Framework (can be used separately) 
</p>]]></description>
      <pubDate>Mon, 04 Oct 2010 12:46:02 -0500</pubDate>
    </item>
  </channel>
</rss>
