package org.lttng.ust.jul;
+import java.util.ArrayList;
import java.lang.String;
import org.lttng.ust.jul.LTTngUst;
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;
}
public class LTTngEvent {
/* Name of the event. */
public String name;
- public LTTngLogLevel logLevel;
+ public ArrayList<LTTngLogLevel> logLevels = new ArrayList<LTTngLogLevel>();
+
+ 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);
}
}