title: Streaming log messages of a Spring boot web application
body: <p>This question is for asking general advice on what tools should I use for this task, and possibly pointing me to some related tutorials. </p>
  
  <p>I have a Spring Boot web application, which during operation generates log messages into a database. There is a JavaScript management tool in the making for this REST application, and 1 function of it would be to show the log messages real-time. Meaning, when the user is on the log showing page, he should see the new log messages appearing without refresing the page.</p>
  
  <p>My questions: </p>
  
  <ul>
  <li>What should be used to provide this for the javascript client at some endpoint? I'm looking at these spring boot starters right now: websocket, redis, amqp. I have not used any of these before.</li>
  <li>How should I "catch" the log messages as they are generated inside the application? So I could send them to the client with the chosen solution.</li>
  </ul>
  
  <p>I'm not really looking for a periodic query type of solution, but rather a server pushing the data as it appears solution.</p>
  
  <p>Any suggestions and code samples are appreciated.</p>