Welcome Guest, Not a member yet? Register   Sign In
Error Logger :: Version 1.0
#1

[eluser]tdktank59[/eluser]
Error Logger

Description
Error Logger is a error logging library that's main purpose is for use within other libraries to handle multiple errors and let you be able to send Boolean returns (TRUE/FALSE) and if FALSE you can retrieve the error message with ease!

How it works
Basically when you want to send an error back instead of writing
Code:
return $error;
you will do this
Code:
$error = new Error_logger();
$error->error_message($label,$message);
return FALSE;

This will set 3 different variables
$error->string :: A string version of all the error messages
$error->all :: A array version of all the error messages
$error->{$label} :: A single error message for a certain label

To display the message you can use any of the 3 variables above

You can also set error prefix and suffix in the config file to be used!

Download
Error Logger Version 1.0

Documentation
#2

[eluser]marinaccio[/eluser]
Nice work!
#3

[eluser]tdktank59[/eluser]
Thanks
#4

[eluser]tdktank59[/eluser]
Sorry to those who have been trying to download this. I changed some paths on my site. Anyways the links have been updates.




Theme © iAndrew 2016 - Forum software by © MyBB