News Feed
Jobs Feed
Sections




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

Sameer Borate's Blog:
Importance of logging in web development
October 04, 2010 @ 12:46:02

Sameer Borate has posted some of his thoughts about logging in PHP applications and how it can be one of the most important things you do.

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.

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: KLogger, Log4PHP and the Zend_Log component of the Zend Framework (can be used separately)

0 comments voice your opinion now!
importance logging application debug


blog comments powered by Disqus

Similar Posts

PHP-GTK Community Site: Click Fast, Desktop Gadget & visualProxy

PHPit.net: Book Review: Smarty PHP Template Programming and Applications

Sandro Groganz's Blog: eZ develops PHP application server

Zend Developer Zone: PHP Abstract Episode 5: Using the Zend Toolbars For Debugging & Profiling Apps

Vance Lucas' Blog: Protected vs Private Scope: Arrogance, Fear and Handcuffs


Community Events











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


symfony2 hack facebook hhvm release unittest component install podcast framework security application package database introduction composer performance language example project

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