i have more a structural question.
What i have:
i have a Spring MVC which is used to run a multiple asynchronous long-running back-end tasks. AngularJS for UI.
The tasks each have own ID in my custom data-cache implementation. Each tasks writing it's logs by log4j2 file appender.
What i want to do:
To view the logs of each process in AngularJS front-end. I'm thinking that i can do thing for example:
Each 10 seconds Angular send request to Spring MVC Controller with task ID. Spring controller parsing the log4j2 file and returning the logs.
But something says me that is not the right way.
Anyone know what is the best solution for this?