| 1 | /* |
| 2 | * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com> |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or modify it |
| 5 | * under the terms of the GNU Lesser General Public License, version 2.1 only, |
| 6 | * as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This library is distributed in the hope that it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License |
| 11 | * for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public License |
| 14 | * along with this library; if not, write to the Free Software Foundation, |
| 15 | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 16 | */ |
| 17 | |
| 18 | package org.lttng.ust.jul; |
| 19 | |
| 20 | import java.lang.String; |
| 21 | |
| 22 | import org.lttng.ust.jul.LTTngUst; |
| 23 | |
| 24 | class LTTngLogLevel { |
| 25 | /* This level is a JUL int level value. */ |
| 26 | public int level; |
| 27 | public int type; |
| 28 | |
| 29 | public LTTngLogLevel(int level, int type) { |
| 30 | this.type = type; |
| 31 | this.level = level; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | public class LTTngEvent { |
| 36 | /* Name of the event. */ |
| 37 | public String name; |
| 38 | public LTTngLogLevel logLevel; |
| 39 | |
| 40 | public LTTngEvent(String name, int loglevel, int loglevel_type) { |
| 41 | this.name = name; |
| 42 | this.logLevel = new LTTngLogLevel(loglevel, loglevel_type); |
| 43 | } |
| 44 | } |