Error & Event Logger

Install –
Config –
Import –
Server –
Example –
Error Catcher –
Misc –

Upload the file and directory to your server.
Setup a database.
Edit the config file and run the error_log_server/install.php file.

Send them to the Error Logger Server
Send them to multiple email address (can be filtered by error type)
print them on the screen (great for debugging on the spot)
send them to a local error log file

You can enable or disable each one independently ñ and they all work together as well.
Invoke on ANY & ALL your domains
Upload the ìerror_catcher.phpî file and add the following bit of code to any PHP page (or a global file) to invoke Error Logger and start logging errors.
You can upload this single file and paste this snippet of code on as many domains as you want ñ All domains will send the errors to your Error Logger Server ñ so you can check all errors from one convenient location!!

$ErrorLogger = new ErrorLogger();

$ErrorLogger->enable_error(true, E_ALL);

// Log methods
$ErrorLogger->set_local_file(TRUE, dirname(__FILE__) . ‘/path/to/dir/’);
$ErrorLogger->set_remote_server(TRUE, array(‘server’=>’’, ‘psk’=>’Y0uR_P5k’));

array(‘email’ => ‘’), //will be emailed EVERY error set by enable_error above (line 7)
array(‘email’ => ‘’, ‘type’=>array(‘Fatal’, ‘Warning’)), //will only be email when Fatal or Warning

‘any string you want’,

This has only been tested on a Linux server ñ not yet tested on a *AMP (home server).












There are 6 files in there that are NOT secure!!

To use these tools upload a tool to the “Tools” directory in the “error_log_server” directory on your server. Use it, then delete it off your server.

fix_dates.php – if your dates are not displaying correctly (because of older versions of Error Log Server)
fix_times.php – if you manually upgraded the database from previous version – you will need to run this file. (if you re-ran the install.php no need to use this.)
list_domains.php – if you upgraded from Beta 0.0.15 this will show you all the domains which are sending errors to the server – each of these domains needs to be updated.
list_urls.php – save as above – but will show you each page that submitted a error.
restore_deleted.php – if you delete an error on accident (or testing) you can use this to restore the error to the Error Log Server.
update_db.php – adds the table column “time_24″ to your database (only need if you installed Beta 0.0.15 or prior.) (if you re-ran the install.php no need to use this.)










Allow me to apologize in advance if you are upgrading – it’s not a lot of fun – but it is the only time you will have to do this.

Your best bet is to remove the previous installation (not the database though) as almost EVERYTHING has changed.
Back up your _config.php file. (you will want your database credentials and login info.)
remove the error_logger folder as well as the error_logger.php and error_maker.php file – FROM ALL DOMAINS
Trust me – its not fun – I had to do this to over 120 domains – again my sincerest apologies!!
You will also need to edit each snippet you pasted into your domains to reflect these changes.

Here are the changes.
The Error Log Server folder has been rename from “error_logger” to “error_log_server”
The Error Catcher has been renamed from “error_logger.php ” to “error_catcher.php”
The Error Maker has been renamed from “error_maker.php” to “example.php”
If you have implemented the Error Catcher on any domains, make sure you edit the snippet to reflect the folder and file name change!!

There has been a change in the database.
The table “errors” has a new column named “time_24″
Added a new table “deleted”
Update the database is easy – just run the new install.php file! – it will NOT hurt your current database. delete install.php file from server.