Class TreeLogger.Type
public static
class
TreeLogger.Type
extends
Object
A type-safe enum of all possible logging severity types.
Methods
Method Detail
getLabel
Gets the label for this severity type.
Return Value
the label
getParent
Gets the parent of this severity type.
Return Value
the parent
instances
Gets all the possible severity types as an array.
Return Value
an array of severity types
needsAttention
public boolean needsAttention()
Indicates whether this severity type represents a high severity that
should be highlighted for the user.
Return Value
true
if this severity is high, otherwise
false
.
toString
valueOf
Looks up a severity type by label.
Parameters
- label
- the label of the desired severity
Return Value
the severity type labelled
label
, or
null
if no such type exists