|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TreeLogger.Type> com.google.gwt.core.ext.TreeLogger.Type
public static enum TreeLogger.Type
A type-safe enum of all possible logging severity types.
Enum Constant Summary | |
---|---|
ALL
Logs everything -- quite a bit of stuff. |
|
DEBUG
Logs detailed information that could be useful during debugging. |
|
ERROR
Logs an error. |
|
INFO
Logs information. |
|
SPAM
Logs extremely verbose and detailed information that is typically useful only to product implementors. |
|
TRACE
Logs information related to lower-level operation. |
|
WARN
Logs a warning. |
Method Summary | |
---|---|
java.lang.String |
getLabel()
Gets the label for this severity type. |
static TreeLogger.Type[] |
instances()
Gets all the possible severity types as an array. |
boolean |
isLowerPriorityThan(TreeLogger.Type other)
Determines whether this log type is of lower priority than some other log type. |
boolean |
needsAttention()
Indicates whether this severity type represents a high severity that should be highlighted for the user. |
static TreeLogger.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TreeLogger.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TreeLogger.Type ERROR
public static final TreeLogger.Type WARN
public static final TreeLogger.Type INFO
public static final TreeLogger.Type TRACE
public static final TreeLogger.Type DEBUG
public static final TreeLogger.Type SPAM
public static final TreeLogger.Type ALL
Method Detail |
---|
public static TreeLogger.Type[] values()
for (TreeLogger.Type c : TreeLogger.Type.values()) System.out.println(c);
public static TreeLogger.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static TreeLogger.Type[] instances()
public java.lang.String getLabel()
public boolean isLowerPriorityThan(TreeLogger.Type other)
other
- the other log type
true
if this log type is lower prioritypublic boolean needsAttention()
true
if this severity is high, otherwise
false
.
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |