News Feed
Sections




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

Northclick Blog:
Getting the PHP fatal errors
May 15, 2007 @ 07:49:00

From the Nothclick dev blog, there's this new post from Soenke Ruempler that talks about working with error messages in PHP, specifically with fatal errors.

One big issue of the PHP error handling is that there's no built-in way to catch fatal errors with an user-defined error handler. So I thought a little bit about it and maybe you have better approaches or solutions...

With the goal of emailing the developers when such an error is thrown, he comes up with three different "storage methods" - using syslog, sapi, or a common logfile - and two different methods for watching them - file watching and syslogger. He works through these two options, trying to figure out which out be the simplest to implement.

He comes to the conclusion, though, that he might just be better off with one of the packages already out there to do something similar. Of the four he found, Swatch seemed to fit the best. He includes configuration and setup info to illustrate.

0 comments voice your opinion now!
fatal error realtime logger syslogger swatch email developer fatal error realtime logger syslogger swatch email developer


blog comments powered by Disqus

Similar Posts

NetTuts.com: Quick Tip: Email Error Logs with PHP

Job Posting: On a Roll Media Seeks PHP Developer (Vancouver, Canada)

Danne Lundqvist's Blog: Setting up a development environment with apache-2.2.6

Kevin van Zonneveld: It's Almost 2014 and We Are Still Committing Broken Code

DevShed: Expanding an Error Logger with the Chain of Responsibility Pattern


Community Events





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


install developer introduction code release refactor list language community opinion configure laravel threedevsandamaybe series testing wordpress podcast unittest framework interview

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