Java web application that can stream the content of an arbitrary file to the browser (live tail)

后端 未结 2 1514
旧巷少年郎
旧巷少年郎 2021-01-15 16:36

I have been searching the web for a while for a Java web application that can be used to \"tail\" on any arbitrary file on the file system. The most important requirement wo

相关标签:
2条回答
  • 2021-01-15 16:52

    Ok, so I followed @Liv suggestion and I have built the thing myself. It's the fruit of a couple of hours of coding, so don't expect much.

    I have tested it on Tomcat and Jetty. Check out the README file.

    https://github.com/aestasit/logviewer

    0 讨论(0)
  • 2021-01-15 16:52

    I had to do this myself a while back as I couldn't find one. I would recommend going down via the Ajax route -- as trying to have "tail -f ..." process started and capturing its console is tedious and also since you keep the connection to the browser open for a long while you will find out that sometimes the browser will just close the connection.

    0 讨论(0)
提交回复
热议问题