I am using log4j to log my data. I wan to be able to view the log files realtime alongside my web-app in a browser. There are standalone tools like Chainsaw which are quite good, but they don't serve the purpos eof viewing logs real-time in a browser.
Can anybody help me with this?
You can use psi-probe. It has a built-in functionality to access logs in real-time, change log level, download, etc...
A simple example would be:
Servlet (change path of log file as needed):
HTML page: