I have a database driven website serving about 50,000 pages.
I want to track each webpage/record hit. I will do this by creating logs, and then batch processing the logs
You could try both ways using log4php, which supports:
Regarding logging into a file, you could improve performance by buffering the write requests.