Being a PHP Lumberjack (23 Mar 2005)
The type of logging you do depends on the nature and scope of the application at hand. For small one-off applications, simplified logging is fine. But for larger scale code, it’s worth it to put a little extra work into adding logging code that is executed or whose output is displayed only under certain conditions (like when a flag is toggled). You might also consider implementing different log levels, so that logging statements are given priority, with only high priority logs printed by default. Whatever implementation you choose, I think you’ll find that putting a little time into understanding how to log efficiently will save much time and frustration in the future.
Article URL: http://www.digital-web.com/articles/php_lumberjack/
Read 304 more articles from Digital Web sorted by
date,
popularity, or
title.
Next Article: Media: Computing looks at the Biggest eLearning Disaster in History
|