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' => '[email protected]'));
Updates
v1.2.0 (30/09/2010) * Completly recoded v1.1.0 (26/10/2009) * Fixed logdir parameter
[eltd_button size=”huge-full-width” type=”outline” text=”Download & Demo Links” custom_class=”#” icon_pack=”font_awesome” fa_icon=”” link=”” target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Demo = PHP Error logger
[eltd_button size=”huge” type=”” text=”Full Live Demo” custom_class=”” icon_pack=”font_awesome” fa_icon=”fa-laptop” link=”https://codecanyon.net/item/php-error-logger/57318″ target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Kindly Note: We update new contents like WordPress Themes, Plugins, PHP Scripts everyday. But remember that you should never use this items in a commercial website. All the contents posted here for development & testing purpose only. We’re not responsible for any damage, use at your own RISK! We highly recommend to buy PHP Error logger from the The Developer ( Sitebase ) website. Thank you.
Download = PHP Error logger-[Updated].zip