Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

PHP Error logger

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

PHP Error logger - CodeCanyon Item for Sale


Ad: Bluehost hosting

Follow Forrst Check out our code snippets Facebook Fan Page Give and receive free item Follow Twitter Item and freebie updates via Follow CodeCanyon Find out about new items first! Support Product support website for our items Subscribe RSS Item updates into your teed readerl

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.


  • 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' => '[email protected]')); 


 v1.2.0 (30/09/2010) * Completly recoded v1.1.0 (26/10/2009) * Fixed logdir parameter 

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


2 September 09

Last Update:

Compatible Browsers:
Firefox, IE6, IE7, IE8

Files Included:

Software Framework:

Software Version:
PHP 5.x


eCommerce, All Items, email, errors, log, logger, php, problem, support, technical