How would you implement a jsp site containing a text area that displays a log file on the server (tomcat) and is automatically updated.
I think the update is just for polling on the server using setTimeout and sending an ajax request. But the problem is how to control the file on the server (is it a Log4J Logfile - maybe I can use my own appender?) To change and send only the changed lines when the ajax request arrives?
I do not know how to detect changed lines in the log ...
source share