PHP Classes

PHP Error Handling: Log fatal and non-fatal PHP errors

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (9 months ago) RSS 2.0 feedStarStarStar 56%Total: 722 This week: 1All time: 4,591 This week: 47Up
Version License PHP version Categories
php-error-handling 12GNU General Publi...5PHP 5, Logging, Language
Description 

Author

This class can log fatal and non-fatal PHP errors.

It registers functions to handle regular errors and a shutdown function to handle fatal errors.

The error handler functions send a message to PHP error log with all the details of the error like the the error source file name, error line number, error message, type of error, time and date of the error.

Optionally the class can also send the error log message by email.

Picture of Radovan Janjic
  Performance   Level  
Name: Radovan Janjic is available for providing paid consulting. Contact Radovan Janjic .
Classes: 14 packages by
Country: Serbia Serbia
Age: 36
All time rank: 2382 in Serbia Serbia
Week rank: 50 Up1 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (2)  
File Role Description
Plain text file ErrorHandler.class.php Class Class
Accessible without login Plain text file example.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:722
This week:1
All time:4,591
This week:47Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1772