Skip to content

A Java web based log viewer that can be deployed to any application server

Notifications You must be signed in to change notification settings

dawogfather/logviewer

 
 

Repository files navigation

logviewer

A fork of aestasit log viewer that hopes to work with tomcat 7...

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 7.0.30+, 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] (http://atmosphere.java.net/) 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] 1.6 (http://www.gradle.org/), the Groovy based build tool or use the awesome [GVM] (http://www.gvmtool.net) install tool.

Once installed, type :

gradle war

to generate the deployable artifact.

Jetty Running

gradle jettyRun

What works and what doesn't (compatibility matrix)

Tomcat 7.0.X

Plan is for this to work also but as yet NOPE! ...

Tomcat 6.0.X

Plan is for this to work also but as yet No idea...

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.

2013 - atebyte apps

http://www.atebyteapps.com

About

A Java web based log viewer that can be deployed to any application server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.7%
  • Java 8.2%
  • Groovy 1.1%