<?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>Tue, 18 Jun 2013 01:42:04 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Henry Hayes' Blog: Firebug Console.Log for PHP using Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/16474</guid>
      <link>http://www.phpdeveloper.org/news/16474</link>
      <description><![CDATA[<p>
<i>Henry Hayes</i> has written up a handy post to his blog looking at <a href="http://www.websitefactors.co.uk/zend-framework/2011/05/firebug-console-log-for-php-using-zend-framework/">using FirePHP and Zend_Log_Writer_Firebug to log messages</a> directly to your Firefox's Firebug console.
</p>
<blockquote>
Due to sloppy programming in the past many PHP error logs can become very clogged up and, unless you use some fancy grep technique, unusable. [...] A project has been around for some time now called <a href="http://www.firephp.org/">FirePHP</a>. This enables us to log messages of various levels of severity to the Firebug console! - Awesome. Just imagine if you are developing an ajax app, you could have all your debug messaging in one place.
</blockquote>
<p>
He walks you through the steps needed to get the logging up and running - setting up FireBug (if you don't have it already) and FirePHP, editing your Zend Framework bootstrap file to add an _initLogging() method and using it for logging, both in the backend script and on the frontend <a href="http://www.websitefactors.co.uk/wp-content/uploads/2011/05/SimpleFirePHPConsole.png">in the console</a>. He also includes a quick update to the logging method that only logs to the Firebug console if the environment is not production. 
</p>]]></description>
      <pubDate>Wed, 15 Jun 2011 12:49:27 -0500</pubDate>
    </item>
  </channel>
</rss>
