Skip to content
A Java web based log viewer that can be deployed to any application server
JavaScript HTML Java CSS
Find file
Latest commit eb2832b Jan 27, 2016 @aadamovich aadamovich Merge pull request #2 from gabhi/master
Update build.gradle
Failed to load latest commit information.
src/main - tailer gets destroyed now Apr 28, 2011
.gitignore - added ignore Apr 28, 2011
README.markdown more doc Apr 28, 2011
build.gradle Update build.gradle Jan 26, 2016
test.txt - test May 3, 2011

README.markdown

logviewer

An 'Atmosphere' based log viewer for simulating a Unix tail command in a browser.

Sometime ago I have asked a question on Stackoverflow about the existence of a web application that could be used to tail on an arbitrary log file located on the server.

I wanted the application to be deployable on any recent Java application server (Tomcat 6, Jetty, Weblogic 10.x) and also to have some kind of server push (Websocket, Comet) to avoid having to refresh the page.

At the time of writing only one person replied and he told me to write the application myself. I cracked some code in a couple of hours and this is the result.

The application uses the Atmosphere framework for pushing the log data from the server to the client. I never worked with Atmoshphere before and I have found the documentation to be very poor, so I may not be using the framework in the perfect way. Nevertheless the application works in Tomcat 6.x and Jetty 6.1 (with some gotchas, see the "compatibility matrix").

Build

To build the application, please install Gradle, the Groovy based build tool.

Once installed, type :

gradle war

to generate the deployable artifact.

What works and what doesn't (compatibility matrix)

Tomcat 6.0.X

Works, but only with Firefox 3 and 4. Chrome doesn't seem to work. Other browsers not tested.

Jetty 6.1.x

Works with Chrome and Firefox 4. Other browsers not tested.

Weblogic 10.3.x (11g)

Doesn't even deploy. :(

Enjoy. Fork, critique, comment, whatever.

2011 - Aestas

http://www.aestasit.com

http://blog.aestasit.com

Something went wrong with that request. Please try again.