I don’t know if the term I’m using is right, but what I’m looking for is something similar to what you get with zend server. Take a look at this.
It looks like on an error, it dumps the request along with a stack trace and function parameters as well as some other info. It lets you view it in a nice interface. I know this wouldn’t be hard to make myself as you can always do error callbacks, but if something like this exists (for free) I’d prefer to use it instead of reinventing the wheel.
I don’t don’t of any tool that will do that automatically for you ; but it is not hard to develop, I think… Still, I admit, it will take you some time 🙁
Just to throw in a few notes, the best solution that comes to my mind to log the errors is :
set_error_handlerUsing the example that’s given on the manual page, something like this would probably do : first, declare your error handling function :
It gets informations of the error, prepares some specific error messages that depend on the error type, and put all that and a dump of
$_GETto a file.(Of course, your webserver must be able to create / write to that file)
Then, you register that handler :
And, finally, just to test, you trigger some errors :
Now, provided you call the page with something like this :
http://tests/temp/temp.php?a=10&test=glop&hello=world; you will get an error log containing this :In this case, it is quite an ugly mess… But you probably see the point ; now, up to you to build upon this to get precisely what you want 😉
Of course, now, you also have to develop the reporting interface (user-friendly, fast, usable, and all that…) ; this will probably be the longest part to put in place 🙁
And, unfortunatly, I do not know any tool that could help you…
(Maybe, if you start developping something, it could be released as open source ? That would probably prove useful to others 😉 I might be interested for some projects, and I am sure I’m not the one 😉 )
Still, have fun !