Fix: Abort loading log4j agent classes when detected log4j version is too old
authorChristian Babeux <christian.babeux@efficios.com>
Thu, 2 Oct 2014 20:31:56 +0000 (16:31 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Oct 2014 20:36:14 +0000 (16:36 -0400)
commit17be0b586e0fa0f382d0dd9134f86ef62db93f1d
tree0d3ea4cd07d21b36ca841d695fd2106cf75b8444
parent277fadd133167002765f8cad14ec7e4b25973f6e
Fix: Abort loading log4j agent classes when detected log4j version is too old

The Java Log4j agent rely on the getTimeStamp() method that was
introduced in log4j 1.2.15. This fix implement a runtime detection of
the log4j library capabilities and abort the loading of the relevant
agent classes if the version used is too old.

Thus, log4j tracing will be deactivated on older version of the
library.

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/org/lttng/ust/agent/LTTngAgent.java
This page took 0.024061 seconds and 4 git commands to generate.