Page 1 of 1

A good error logging class

Posted: Wed Apr 12, 2006 3:23 pm
by Luke
Does anybody know of a good class for logging website errors (PHP errors, etc.) in a database that also can display the errors in various formats... as well as redirecting users upon errors etc. I have looked all over for one and can't find one. I was just going to write one, but I figured there were plenty already written so why reinvent the wheel? Anybody?

Posted: Wed Apr 12, 2006 3:38 pm
by feyd
not much of a class needed really.. calling set_error_handler() is all that's needed to intercept the errors.

Posted: Wed Apr 12, 2006 3:45 pm
by Luke
and once intercepted, I still need to log the errors, don't I?

Posted: Wed Apr 12, 2006 4:02 pm
by feyd
that's a simple insert away.

Posted: Wed Apr 12, 2006 4:16 pm
by Luke
yes I suppose you are right