CodeIgniter Forums

Full Version: Error Logger :: Version 1.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Error Logger

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
return $error;
you will do this
$error = new Error_logger();
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!

Error Logger Version 1.0


El Forum

Nice work!

El Forum


El Forum

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