In my Spring/Hibernate/MVC application I implement some long running functions. In this case I would like to inform the user about the status.
I wonder, if I can get certain log4j messages to the frontend, like:
DEBUG d.t.webapp.services.StageServiceImpl - Fetching result
DEBUG d.t.webapp.services.StageServiceImpl - loaded 1000 rows
DEBUG d.t.webapp.services.StageServiceImpl - loaded 1000 rows
DEBUG d.t.webapp.services.StageServiceImpl - loaded 1000 rows
DEBUG d.t.webapp.services.StageServiceImpl - loaded 994 rows
Those message should appear to the frontend step-by-step, as they are produced by the backend, with minimal delay. Is that possible or are there better solutions for this requirement?