CodeCanyon

PHP Error logger

This script also can help you for supporting your clients because you can see what went wrong on a particular date. This can help you solve the problem faster.

Logger can be used to log PHP errors and problems instead of showing them to the visitors. This way it’s easieer for you to detect problemens in a website/application and solve them. And your visitors won’t be bothered with ugly error messages.

Features

  • Print errors to screen
  • Email errors to your mailbox
  • Log errors to a file
  • Log any specific types of errors
  • Log Fatal errors
  • Log uncaught exceptions
  • Write a variable/string to the log file, very handy when debugging

Code example

Below you can see and example how PHP error logger is used:

// Load Error logger
include("LogBase.php");
$LogBase = new LogBase();

// Types to log
$LogBase->enable_error(true, E_NOTICE);
$LogBase->enable_fatal();
$LogBase->enable_exception();

// Log methods
$LogBase->enable_method_file(true, array('path' => dirname(__FILE__) . '/log/'));
$LogBase->enable_method_print();
$LogBase->enable_method_mail(true, array('email' => 'myemail@mysite.com'));

Updates

v1.2.0 (30/09/2010)
* Completly recoded

v1.1.0 (26/10/2009)
* Fixed logdir parameter

You must sign in or sign up to purchase this item.

$4Regular Licence

$4

Regular Licence a website (commercial, personal, client), or intranet site project - Details

$20Extended Licence

$20

Extended Licence a website template for sale (including on ThemeForest or ActiveDen) - Details

105 Purchases 28 Comments

Buyer Rating
12345 ( 24 ratings )
Sitebase

Sitebase

  • Has been a member for 2-3 years
  • Won a Competition
  • Author had a File in an Envato Bundle
  • Envato Staff
  • Reviewer
  • Author had a Free File of the Month
  • Exclusive Author
  • Beta Tester
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Belgium
  • Referred between 100 and 199 users
View Portfolio
Created 2 September 09
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, IE8
Software Version PHP 5.x
Software Framework N/A
Files Included PHP
by
by
by
by
by