Login   Register  
PHP Classes
elePHPant
Icontem

Error Logging: Handle PHP fatal and non-fatal execution errors

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-12-02 (3 years ago) RSS 2.0 feedStarStarStar 43%Total: 1,327 This week: 2All time: 2,689 This week: 835Up
Version License PHP version Categories  
error-logging 1.0GNU General Public Lice...5.2PHP 5, Debug
Description Author  

This class can be used to handle PHP fatal and non-fatal execution errors.

It registers an error handler that is capable of a backtrace with the list of functions and arguments used to call the code that causes an error, send that information to the current page output or the PHP error log, or send an e-mail message to the administrator.

The class can also trap fatal errors using a special PHP script shutdown callback function.

Innovation Award  
PHP Programming Innovation award winner
October 2010
Winner


Prize: One copy of the Zend Studio
PHP can easily trap and log runtime errors. However, PHP error handlers cannot trap fatal errors.

This class provides a work around for that limitation. It registers a PHP shutdown callback function that can detect if the current script is terminating due to a fatal error.

Manuel Lemos
Picture of Nitesh Apte
Name: Nitesh Apte is available for providing paid consulting. Contact Nitesh Apte .
Classes: 11 packages by
Country: India India
Age: 30
All time rank: 25016 in India India
Week rank: 77 Up10 in India India Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file class.ErrorLogging.php Class Error Logging Class
Accessible without login Plain text file conf.inc Conf. defined values
Accessible without login Plain text file example.php Example usage
Accessible without login Plain text file LICENSE.TXT Lic. License File

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,327All time:2,689
 This week:2This week:835Up
User Ratings User Comments (5)  
 All time
Utility:64%StarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:35%StarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:1988
 
Every normal program first need to handle exception and only ...
3 years ago (Andrey Nikishaev)
7%Star
Good idea.
3 years ago (Brandon Sussman)
32%StarStar
excellent
3 years ago (Krishn)
70%StarStarStarStar
I like the concept of a fatal error handler in the shutdown f...
3 years ago (Fabian Schmengler)
22%StarStar
This is a very good and useful class ! lool But i prefer in s...
3 years ago (Josť Filipe Lopes Santos)
70%StarStarStarStar