简体   繁体   中英

Display the message written in log file on webpage after every 3 seconds

So i have built an web application which perform a task which may take upto 10 minutes. I want to show the current status to user on the webpage.

I have log.info(), log.debug() and log.error() message used within my webapp for logging the status.

How should i go about displaying the log message on webpage using minimum effort. ?

Look at extending log4j classes http://logging.apache.org/log4j/2.x/manual/extending.html

In you custom loggers you can also write to the web page as well as keeping normal log4j functionality and configuration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM