Re: Error Handling Class - Any Recommendations?

From: Date: Thu, 18 Apr 2002 15:33:36 +0000
Subject: Re: Error Handling Class - Any Recommendations?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-93549@lists.php.net to get a copy of this message
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

« previous php.general (#93549) next »