News Feed
Sections




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

Henry Hayes' Blog:
Firebug Console.Log for PHP using Zend Framework
June 15, 2011 @ 12:49:27

Henry Hayes has written up a handy post to his blog looking at using FirePHP and Zend_Log_Writer_Firebug to log messages directly to your Firefox's Firebug console.

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 FirePHP. 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.

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 in the console. He also includes a quick update to the logging method that only logs to the Firebug console if the environment is not production.

0 comments voice your opinion now!
firebug consolelog firephp zendframework logging writer


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Announcing May's ZF Bug Hunting Days

Rob Allen's Blog: Translations of my Zend Framework Tutorial for ZF 1.10 & 1.11

Padraic Brady's Blog: Zend_Feed_Reader promoted to Zend Framework trunk (watch out for ZF 1.9!)

Zend Developer Zone: php|architect Announces 'Programming with the Zend Framework'

Dave Dash's Blog: Boosting terms in Zend Search Lucene


Community Events





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


release library community update opinion framework package series api tips deployment interview podcast laravel language zendserver list introduction symfony install

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