hi guys, i am currently building a nice website and i was just wondering about the best way to handle errors, database and webservices errors.
i was thinking on implementing a mixture of file and db logging. so basically i would log to db all the time and then i would log to filewhen there is a db error. i am also thinking of the best way to handle this.
the site is built in Zend Framework, so i am considering using the zend error handling and logging functionality, but i worried it might be too much overhead.
do you guys have any suggestions as to the best way to go about this? zend, pear or any other?
Error handling in application
Moderator: General Moderators
-
- Forum Commoner
- Posts: 49
- Joined: Fri Aug 22, 2008 7:28 pm
- Location: Rancho Cucamonga, CA
- Christopher
- Site Administrator
- Posts: 13592
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Error handling in application
You might want to think about the standard PHP error logging. It is obviously very efficient. Take a look at trigger_error().
(#10850)