Add 'log4j2' domain tests to the Log4j 2.x agent
[lttng-ust-java-tests.git] / lttng-tools-java / src / main / java / org / lttng / tools / ILttngSession.java
index 414e3fb03c19cd9dd42699f4c65f369e85885748..faecc0c96bda1fcd2305fac35d0ee078388f8533 100644 (file)
@@ -32,13 +32,18 @@ public interface ILttngSession extends AutoCloseable {
      */
     enum Domain {
         /** The JUL (java.util.logging) domain */
-        JUL("-j"), /** The log4j (org.apache.log4j) domain */
-        LOG4J("-l");
+        JUL("--jul", ">=", Integer.MIN_VALUE), /** The log4j (org.apache.log4j) domain */
+        LOG4J("--log4j", ">=", Integer.MIN_VALUE),
+        LOG4J2("--log4j2", "<=", Integer.MAX_VALUE);
 
         private final String flag;
+        private final String rangeOperator;
+        private final int levelAllValue;
 
-        private Domain(String flag) {
+        private Domain(String flag, String rangeOperator, int levelAllValue) {
             this.flag = flag;
+            this.rangeOperator = rangeOperator;
+            this.levelAllValue = levelAllValue;
         }
 
         /**
@@ -48,6 +53,14 @@ public interface ILttngSession extends AutoCloseable {
         public String flag() {
             return flag;
         }
+
+        public String rangeOperator() {
+            return rangeOperator;
+        }
+
+        public int levelAllValue() {
+            return levelAllValue;
+        }
     }
 
     // ------------------------------------------------------------------------
This page took 0.022714 seconds and 4 git commands to generate.