X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-jul%2Forg%2Flttng%2Fust%2Fjul%2FLTTngEvent.java;h=6d81922ea9148f330718085570044a1140889081;hb=3c3a0129d36e41b4c007ab008f603813efbb66ac;hp=a519f449e2c7ede19e7ceaa97ab30d48939361da;hpb=2b90f1d34356963d8cac98fb409689a5c3ebd2ac;p=lttng-ust.git diff --git a/liblttng-ust-jul/org/lttng/ust/jul/LTTngEvent.java b/liblttng-ust-jul/org/lttng/ust/jul/LTTngEvent.java index a519f449..6d81922e 100644 --- a/liblttng-ust-jul/org/lttng/ust/jul/LTTngEvent.java +++ b/liblttng-ust-jul/org/lttng/ust/jul/LTTngEvent.java @@ -17,6 +17,7 @@ package org.lttng.ust.jul; +import java.util.ArrayList; import java.lang.String; import org.lttng.ust.jul.LTTngUst; @@ -26,7 +27,7 @@ class LTTngLogLevel { public int level; public int type; - public LTTngLogLevel(String event_name, int level, int type) { + public LTTngLogLevel(int level, int type) { this.type = type; this.level = level; } @@ -35,10 +36,14 @@ class LTTngLogLevel { public class LTTngEvent { /* Name of the event. */ public String name; - public LTTngLogLevel logLevel; + public ArrayList logLevels = new ArrayList(); + + public void addLogLevel(int loglevel, int loglevel_type) { + this.logLevels.add(new LTTngLogLevel(loglevel, loglevel_type)); + } public LTTngEvent(String name, int loglevel, int loglevel_type) { this.name = name; - this.logLevel = new LTTngLogLevel(name, loglevel, loglevel_type); + this.addLogLevel(loglevel, loglevel_type); } }