Commit | Line | Data |
---|---|---|
eb1bab5b BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2012 Ericsson | |
b0318660 | 3 | * |
eb1bab5b BH |
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 | |
b0318660 AM |
8 | * |
9 | * Contributors: | |
eb1bab5b BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | *********************************************************************/ | |
9315aeee | 12 | package org.eclipse.linuxtools.internal.lttng2.core.control.model; |
eb1bab5b BH |
13 | |
14 | /** | |
eb1bab5b | 15 | * <p> |
ccc66d01 | 16 | * Log Level enumeration. |
eb1bab5b | 17 | * </p> |
b0318660 | 18 | * |
dbd4432d | 19 | * @author Bernd Hufmann |
eb1bab5b BH |
20 | */ |
21 | @SuppressWarnings("nls") | |
22 | public enum TraceLogLevel { | |
b0318660 | 23 | |
eb1bab5b BH |
24 | // ------------------------------------------------------------------------ |
25 | // Enum definition | |
26 | // ------------------------------------------------------------------------ | |
b0318660 AM |
27 | /** Log level 0 */ |
28 | TRACE_EMERG("TRACE_EMERG"), | |
29 | /** Log level 1 */ | |
30 | TRACE_ALERT("TRACE_ALERT"), | |
31 | /** Log level 2 */ | |
32 | TRACE_CRIT("TRACE_CRIT"), | |
33 | /** Log level 3 */ | |
34 | TRACE_ERR("TRACE_ERR"), | |
35 | /** Log level 4 */ | |
36 | TRACE_WARNING("TRACE_WARNING"), | |
37 | /** Log level 5 */ | |
38 | TRACE_NOTICE("TRACE_NOTICE"), | |
39 | /** Log level 6 */ | |
40 | TRACE_INFO("TRACE_INFO"), | |
41 | /** Log level 7 */ | |
42 | TRACE_DEBUG_SYSTEM("TRACE_DEBUG_SYSTEM"), | |
43 | /** Log level 8 */ | |
44 | TRACE_DEBUG_PROGRAM("TRACE_DEBUG_PROGRAM"), | |
45 | /** Log level 9 */ | |
46 | TRACE_DEBUG_PROCESS("TRACE_DEBUG_PROCESS"), | |
47 | /** Log level 10 */ | |
48 | TRACE_DEBUG_MODULE("TRACE_DEBUG_MODULE"), | |
49 | /** Log level 11 */ | |
50 | TRACE_DEBUG_UNIT("TRACE_DEBUG_UNIT"), | |
51 | /** Log level 12 */ | |
52 | TRACE_DEBUG_FUNCTION("TRACE_DEBUG_FUNCTION"), | |
53 | /** Log level 13 */ | |
54 | TRACE_DEBUG_LINE("TRACE_DEBUG_LINE"), | |
55 | /** Log level 14 */ | |
56 | TRACE_DEBUG("TRACE_DEBUG"), | |
57 | /** Log level 15 */ | |
58 | LEVEL_UNKNOWN("LEVEL_UNKNOWN"); | |
eb1bab5b BH |
59 | |
60 | // ------------------------------------------------------------------------ | |
61 | // Attributes | |
62 | // ------------------------------------------------------------------------ | |
63 | /** | |
b0318660 | 64 | * Name of enum. |
eb1bab5b BH |
65 | */ |
66 | private final String fInName; | |
67 | ||
68 | // ------------------------------------------------------------------------ | |
69 | // Constuctors | |
70 | // ------------------------------------------------------------------------ | |
b0318660 | 71 | |
eb1bab5b BH |
72 | /** |
73 | * Private constructor | |
74 | * @param name the name of state | |
75 | */ | |
76 | private TraceLogLevel(String name) { | |
77 | fInName = name; | |
78 | } | |
79 | ||
80 | // ------------------------------------------------------------------------ | |
81 | // Accessors | |
82 | // ------------------------------------------------------------------------ | |
83 | /** | |
84 | * @return state name | |
85 | */ | |
86 | public String getInName() { | |
87 | return fInName; | |
88 | } | |
b0318660 | 89 | } |