Refactor liblttng-ust-jul in liblttng-ust-agent
authorChristian Babeux <christian.babeux@efficios.com>
Mon, 15 Sep 2014 03:11:30 +0000 (23:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 19 Sep 2014 19:59:33 +0000 (15:59 -0400)
commit501f6777610d7f8d855453c0083a10912d5fac4b
treeb4272e0d6e261d32f37cf4b99a8d19f8047649ea
parent8d17995998aa11ffeecbe2cf7701106283544253
Refactor liblttng-ust-jul in liblttng-ust-agent

This is a major refactor of the initial implementation of the UST JUL
agent. The agent now support the log4j logging backend.

The agent can now be built in three different configurations:

1) Java agent with JUL support:

$ ./configure --enable-java-agent-jul

2) Java agent with Log4j support:

$ export CLASSPATH=$CLASSPATH:/path/to/log4j.jar
$ ./configure --enable-java-agent-log4j

3) Java agent with JUL + Log4j support

$ export CLASSPATH=$CLASSPATH:/path/to/log4j.jar
$ ./configure --enable-java-agent-all

To build the agent with log4j support, make sure that the log4j jar
is in your Java classpath.

The configure script will automatically detect the appropriate Java
binaries to use in order to build the Java agent.

The name of the agent jar file is now "liblttng-ust-agent.jar".
It will be installed in the arch-agnostic "$prefix/share/java" path
e.g: "/usr/share/java".

In order to support older applications using the "org.lttng.ust.jul"
package, a transitional package is built with the same name.

All applications should move to use the "org.lttng.ust.agent" package.

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
44 files changed:
.gitignore
Makefile.am
configure.ac
doc/examples/Makefile.am
doc/examples/java-jul/Hello.java
doc/examples/java-jul/Makefile
doc/examples/java-jul/run
doc/examples/java-log4j/Hello.java [new file with mode: 0644]
doc/examples/java-log4j/Makefile [new file with mode: 0644]
doc/examples/java-log4j/run [new file with mode: 0755]
liblttng-ust-java-agent/Makefile.am [new file with mode: 0644]
liblttng-ust-java-agent/java/Makefile.am [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngAgent.java [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngSessiondCmd2_6.java [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngTCPSessiondClient.java [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/agent/LogFramework.java [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/agent/LogFrameworkSkeleton.java [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/agent/jul/LTTngJUL.java [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/agent/jul/LTTngLogHandler.java [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/agent/log4j/LTTngLog4j.java [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/agent/log4j/LTTngLogAppender.java [new file with mode: 0644]
liblttng-ust-java-agent/java/org/lttng/ust/jul/LTTngAgent.java [new file with mode: 0644]
liblttng-ust-java-agent/jni/Makefile.am [new file with mode: 0644]
liblttng-ust-java-agent/jni/jul/Makefile.am [new file with mode: 0644]
liblttng-ust-java-agent/jni/jul/lttng_ust_jul.c [new file with mode: 0644]
liblttng-ust-java-agent/jni/jul/lttng_ust_jul.h [new file with mode: 0644]
liblttng-ust-java-agent/jni/log4j/Makefile.am [new file with mode: 0644]
liblttng-ust-java-agent/jni/log4j/lttng_ust_log4j.c [new file with mode: 0644]
liblttng-ust-java-agent/jni/log4j/lttng_ust_log4j.h [new file with mode: 0644]
liblttng-ust-jul/LTTngUst.c [deleted file]
liblttng-ust-jul/Makefile.am [deleted file]
liblttng-ust-jul/lttng_ust_jul.h [deleted file]
liblttng-ust-jul/org/lttng/ust/jul/LTTngAgent.java
liblttng-ust-jul/org/lttng/ust/jul/LTTngEvent.java [deleted file]
liblttng-ust-jul/org/lttng/ust/jul/LTTngLogHandler.java
liblttng-ust-jul/org/lttng/ust/jul/LTTngSessiondCmd2_4.java [deleted file]
liblttng-ust-jul/org/lttng/ust/jul/LTTngTCPSessiondClient.java [deleted file]
liblttng-ust-jul/org/lttng/ust/jul/LTTngThread.java [deleted file]
liblttng-ust-jul/org/lttng/ust/jul/LTTngUst.java [deleted file]
tests/Makefile.am
tests/java-jul/JULTest.java
tests/java-jul/Makefile.am [deleted file]
tests/java-jul/test_jul [deleted file]
tests/unit_tests
This page took 0.028569 seconds and 4 git commands to generate.