Hello,
Julio Nobrega Trabalhando wrote:
>
> I am looking for something like this:
>
> if (error($anything)) {
> $method = Array('show_on_page', 'email', 'file');
> $my_error_message = 'We are in trouble!';
> $severity = 'Light';
> $error_class->LogError($method, $my_own_error_message,
> $natural_error_message, $severity, $file_where_happened, $line, $etc...);
> }
Did you know that the function error_log those exactly that what you
want?
http://www.php.net/manual/en/function.error-log.php
Why using a bloated error handling class that what you want without
requiring 800 lines of code that PEAR error handler does?
Regards,
Manuel Lemos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php