Java logging viewer
Java Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jlv-core
jlv-eclipse-plugin
.gitignore
.travis.yml
LICENSE
README.textile
deploy-core.sh
deploy-plugin.sh
eclipse-formatter-profile.xml
jlv-logo.png

README.textile

Drag to your running Eclipse workspace to install JLV.

Information

Java logging viewer is available as a plugin for Eclipse IDE.

Supported logging systems:
  • logback v1.x
  • log4j v1.x
  • log4j v2.x
Main features:
  • Receiving logs via socket
  • Quick filtration
  • Detailed information about selected log
  • Preferences page for controlling and saving plugin state
  • Preferences page for customizing log list representation
Minimum requirements:
  • Eclipse 4.6
  • Java 1.8
Breaking backward compatibility:
  • Release 1.4.0: Jlv Eclipse plugin 1.4.0 uses plugin element ids which are different from those, used in 1.3.3 version, so old versions of Jlv Eclipse plugin should be removed before installing 1.4.0 (#82).

Eclipse update site

https://github.com/rdiachenko/jlv/raw/repo/eclipse

Release notes

Client logging system configuration

Jlv uses socket connection to receive logs from clients. Clients should configure their logging system properties file for successful interaction. Default port is 4445, but you may also change it in Jlv plugin preferences page.

Logback minimum configuration (logback.xml)
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
  <appender name="JLV" class="ch.qos.logback.classic.net.SocketAppender">
    <remoteHost>localhost</remoteHost>
    <port>4445</port>
    <includeCallerData>true</includeCallerData>
  </appender>
  <root level="DEBUG">
    <appender-ref ref="JLV" />
  </root>
</configuration>
Log4j1 minimum configuration (log4j.xml/log4j.properties)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  <appender name="JLV" class="org.apache.log4j.net.SocketAppender">
    <param name="remoteHost" value="localhost" />
    <param name="port" value="4445" />
    <param name="locationInfo" value="true" />
  </appender>
  <root>
    <priority value="DEBUG" />
    <appender-ref ref="JLV" />
  </root>
</log4j:configuration>
log4j.rootCategory=DEBUG, JLV
log4j.appender.JLV=org.apache.log4j.net.SocketAppender
log4j.appender.JLV.remoteHost=localhost
log4j.appender.JLV.port=4445
log4j.appender.JLV.locationInfo=true
Log4j2 minimum configuration (log4j2.xml)
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
  <Appenders>
    <Socket name="JLV" host="localhost" port="4445">
      <SerializedLayout />
    </Socket>
  </Appenders>
  <Loggers>
    <Root level="DEBUG">
      <AppenderRef ref="JLV" />
    </Root>
  </Loggers>
</Configuration>

Screenshots

Open Jlv view (Window > Show View > Other > Java Logging Viewer > Log list)

Main preferences page (Window > Preferences > Java Logging Viewer)

User Interface preferences page (Window > Preferences > Java Logging Viewer > User Interface)

Log list view and log details

Log list view with filtering

How to contribute

Contributors

Ruslan Diachenko