News Feed
Sections




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

DevShed:
Logging in PHP Applications
December 08, 2008 @ 13:52:10

DevShed has posted a new tutorial today looking at one of the more useful tools a developer can add into an application - logging.

If there is no logging mechanism, then if there's a goof-up in a production environment, you have absolutely no idea what went wrong. The only thing which a support developer can do in this case is to reproduce the issue at the developer end, which sometimes work and sometimes don't.

The look at the types of logging (trace logs, audit logs and user logging/history) and create a simple class that allows flexibility for file location, priority and timstamping. Their script contains a writelog method that does all the work (including pushing it through the PEAR logging class).

0 comments voice your opinion now!
log tutorial pear trace audit history priority timestamp location


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Indexing Web Content with PHP and SWISH-E

PEAR Blog: PHP 5.3 Windows and PEAR (go-pear.phar)

Brian Swan's Blog: SQL Server Driver for PHP Connection Options: Snapshot Isolation

Pádraic Brady's Blog: XSS in PHP (Part 1): How Not to Use Htmlspecialchars

JSLabs Blog: How to write an image gallery script in PHP


Community Events

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


framework release version extension series xdebug api interview community example conference symfony2 opinion podcast laravel introduction performance voicesoftheelephpant php7 library

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