web logs should work well here. If the web server is apache, you can point the data transfer for the site running your application to custom log files and do quite a bit with what is logged and in what format.
This can later be parsed with php or any other tool to get the information required.
For further reference, please have a look at:
http://httpd.apache.org/docs/logs.html
hth.