Package com.google.gwt.core.ext
Enum TreeLogger.Type
- All Implemented Interfaces:
Serializable
,Comparable<TreeLogger.Type>
,java.lang.constant.Constable
- Enclosing class:
TreeLogger
A type-safe enum of all possible logging severity types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLogs everything -- quite a bit of stuff.Logs detailed information that could be useful during debugging.Logs an error.Logs information.Logs extremely verbose and detailed information that is typically useful only to product implementors.Logs information related to lower-level operation.Logs a warning. -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
Gets the label for this severity type.static TreeLogger.Type[]
Gets all the possible severity types as an array.boolean
Determines whether this log type is of lower priority than some other log type.boolean
Indicates whether this severity type represents a high severity that should be highlighted for the user.static TreeLogger.Type
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.
-
Enum Constant Details
-
ERROR
Logs an error. -
WARN
Logs a warning. -
INFO
Logs information. -
TRACE
Logs information related to lower-level operation. -
DEBUG
Logs detailed information that could be useful during debugging. -
SPAM
Logs extremely verbose and detailed information that is typically useful only to product implementors. -
ALL
Logs everything -- quite a bit of stuff.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
instances
Gets all the possible severity types as an array.- Returns:
- an array of severity types
-
getLabel
Gets the label for this severity type.- Returns:
- the label
-
isLowerPriorityThan
Determines whether this log type is of lower priority than some other log type.- Parameters:
other
- the other log type- Returns:
true
if this log type is lower priority
-
needsAttention
public boolean needsAttention()Indicates whether this severity type represents a high severity that should be highlighted for the user.- Returns:
true
if this severity is high, otherwisefalse
.
-