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

Scott Mattocks:
L is for Logging (LUCID)
September 24, 2012 @ 09:23:57

Scott Mattocks has started off his series about the LUCID development methodology (one he recently proposed) with the first article covering "L" for Logging.

Communication is the only way you can tell if an application is feeling well or is about to fall apart. If your application can't talk to you, you have no way of helping it to feel better. The L in LUCID is for logging. Logs are how applications speak. They capture information that allows us to pick up on those little signs and act early enough to make sure the application doesn't come down with the flu. If you don't have good logging throughout your system, the best you can do is react to your application falling over. A silent application is an application destined to cause midnight surprises for you and your operations team.

He talks about the difference between "just logging" and "correct logging" as well as a recommendation for the different levels: trace, debug, info, warn and error.

Letting you know that something went wrong is really only half of a log messages job. The other responsibilities of a log message are to allow you to accurately reproduce the conditions under which the event occurred, and to allow you to fix any data inconsistencies.
0 comments voice your opinion now!
lucid development principles logging effective levels


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: PHP Extension Development with PHP-CPP: Object Oriented Code

Stuart Herbert's Blog: Setting Up Sublime Text 2 For PHP Development

Ivo Jansch's Blog: Book announcement: Enterprise PHP Development

Michelangelo van Dam's Blog: Book Review: PHP Development in the Cloud

Job Posting: SoftLayer Seeks Software Engineer - Systems Development (Dallas, Tx)


Community Events











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


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

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