| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2012 Ericsson |
| 3 | * |
| 4 | * All rights reserved. This program and the accompanying materials are |
| 5 | * made available under the terms of the Eclipse Public License v1.0 which |
| 6 | * accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Bernd Hufmann - Initial API and implementation |
| 11 | *********************************************************************/ |
| 12 | package org.eclipse.linuxtools.internal.lttng.ui.views.control.model; |
| 13 | |
| 14 | /** |
| 15 | * <b><u>TraceLogLevels</u></b> |
| 16 | * <p> |
| 17 | * Log Level enumeration. |
| 18 | * </p> |
| 19 | */ |
| 20 | @SuppressWarnings("nls") |
| 21 | public enum TraceLogLevel { |
| 22 | |
| 23 | // ------------------------------------------------------------------------ |
| 24 | // Enum definition |
| 25 | // ------------------------------------------------------------------------ |
| 26 | TRACE_EMERG("TRACE_EMERG"), // 0 |
| 27 | TRACE_ALERT("TRACE_ALERT"), // 1 |
| 28 | TRACE_CRIT("TRACE_CRIT"), // 2 |
| 29 | TRACE_ERR("TRACE_ERR"), // 3 |
| 30 | TRACE_WARNING("TRACE_WARNING"), // 4 |
| 31 | TRACE_NOTICE("TRACE_NOTICE"), // 5 |
| 32 | TRACE_INFO("TRACE_INFO"), // 6 |
| 33 | TRACE_DEBUG_SYSTEM("TRACE_DEBUG_SYSTEM"), // 7 |
| 34 | TRACE_DEBUG_PROGRAM("TRACE_DEBUG_PROGRAM"), // 8 |
| 35 | TRACE_DEBUG_PROCESS("TRACE_DEBUG_PROCESS"), // 9 |
| 36 | TRACE_DEBUG_MODULE("TRACE_DEBUG_MODULE"), // 10 |
| 37 | TRACE_DEBUG_UNIT("TRACE_DEBUG_UNIT"), // 11 |
| 38 | TRACE_DEBUG_FUNCTION("TRACE_DEBUG_FUNCTION"), //12 |
| 39 | TRACE_DEBUG_LINE("TRACE_DEBUG_LINE"), //13 |
| 40 | TRACE_DEBUG("TRACE_DEBUG"), // 14 |
| 41 | LEVEL_UNKNOWN("LEVEL_UNKNOWN"); // 15 |
| 42 | |
| 43 | // ------------------------------------------------------------------------ |
| 44 | // Attributes |
| 45 | // ------------------------------------------------------------------------ |
| 46 | /** |
| 47 | * Name of enum. |
| 48 | */ |
| 49 | private final String fInName; |
| 50 | |
| 51 | // ------------------------------------------------------------------------ |
| 52 | // Constuctors |
| 53 | // ------------------------------------------------------------------------ |
| 54 | |
| 55 | /** |
| 56 | * Private constructor |
| 57 | * @param name the name of state |
| 58 | */ |
| 59 | private TraceLogLevel(String name) { |
| 60 | fInName = name; |
| 61 | } |
| 62 | |
| 63 | // ------------------------------------------------------------------------ |
| 64 | // Accessors |
| 65 | // ------------------------------------------------------------------------ |
| 66 | /** |
| 67 | * @return state name |
| 68 | */ |
| 69 | public String getInName() { |
| 70 | return fInName; |
| 71 | } |
| 72 | }; |
| 73 | |
| 74 | |