public static enum TreeLogger.Type extends Enum<TreeLogger.Type>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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(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.
|
compareTo, createValueOfMap, equals, getDeclaringClass, hashCode, name, obfuscatedName, ordinal, toString, valueOf, valueOf
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
public static TreeLogger.Type[] values()
for (TreeLogger.Type c : TreeLogger.Type.values()) System.out.println(c);
public static TreeLogger.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TreeLogger.Type[] instances()
public String getLabel()
public boolean isLowerPriorityThan(TreeLogger.Type other)
other
- the other log typetrue
if this log type is lower prioritypublic boolean needsAttention()
true
if this severity is high, otherwise
false
.Copyright © 2018. All rights reserved.