projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test: add match only event utils function
[lttng-tools.git]
/
tests
/
regression
/
ust
/
java-jul
/
JTestLTTng.java
diff --git
a/tests/regression/ust/java-jul/JTestLTTng.java
b/tests/regression/ust/java-jul/JTestLTTng.java
index 5f15e143890a521452476b1d4ad3dfe61d334578..24f4e7e1faf7b200cf7f885ad9fcb84c32de0d5a 100644
(file)
--- a/
tests/regression/ust/java-jul/JTestLTTng.java
+++ b/
tests/regression/ust/java-jul/JTestLTTng.java
@@
-17,6
+17,7
@@
import java.lang.Integer;
import java.util.logging.Logger;
import java.lang.Integer;
import java.util.logging.Logger;
+import java.util.logging.Level;
import org.lttng.ust.jul.LTTngAgent;
import org.lttng.ust.jul.LTTngAgent;
@@
-27,16
+28,35
@@
public class JTestLTTng
public static void main(String args[]) throws Exception
{
Logger lttng = Logger.getLogger("JTestLTTng");
public static void main(String args[]) throws Exception
{
Logger lttng = Logger.getLogger("JTestLTTng");
+ Logger lttng2 = Logger.getLogger("JTestLTTng2");
int nrIter = Integer.parseInt(args[0]);
int waitTime = Integer.parseInt(args[1]);
int nrIter = Integer.parseInt(args[0]);
int waitTime = Integer.parseInt(args[1]);
+ int fire_finest_tp = 0;
+ int fire_second_tp = 0;
+
+ if (args.length > 2) {
+ fire_finest_tp = Integer.parseInt(args[2]);
+ }
+ if (args.length > 3) {
+ fire_second_tp = Integer.parseInt(args[3]);
+ }
lttngAgent = LTTngAgent.getLTTngAgent();
lttngAgent = LTTngAgent.getLTTngAgent();
+ lttng.setLevel(Level.FINEST);
for (int iter = 0; iter < nrIter; iter++) {
lttng.info("JUL tp fired!");
for (int iter = 0; iter < nrIter; iter++) {
lttng.info("JUL tp fired!");
+ if (fire_finest_tp == 1) {
+ /* Third arg, trigger finest TP. */
+ lttng.finest("JUL FINEST tp fired");
+ }
Thread.sleep(waitTime);
}
Thread.sleep(waitTime);
}
+ if (fire_second_tp == 1) {
+ lttng2.info("JUL second logger fired");
+ }
+
lttngAgent.dispose();
}
}
lttngAgent.dispose();
}
}
This page took
0.023995 seconds
and
4
git commands to generate.