Fix: Warn when log4j version is too old
[lttng-ust.git] / liblttng-ust-java-agent / java / org / lttng / ust / agent / LTTngAgent.java
index 47b45197ad8c1584594b01c69c24d700130972bf..f7e1e386be9bd5a56e0016ef235081490782c299 100644 (file)
@@ -119,6 +119,7 @@ public class LTTngAgent {
                try {
                        logging.getDeclaredMethod("getTimeStamp");
                } catch (NoSuchMethodException e) {
+                       System.err.println("Warning: The loaded log4j library is too old. Log4j tracing with LTTng will be disabled.");
                        return false;
                } catch (NullPointerException e) {
                        /* Should never happen */
This page took 0.028255 seconds and 4 git commands to generate.