public enum ReportLevel extends Enum<ReportLevel>
| Enum Constant and Description |
|---|
DEBUG
Should be used for general debugging information.
|
ERROR
Should be used for things fatal to the current operation, but not the whole process.
|
FATAL
An error which leads to the complete shutdown, so one from which the application cannot possible recover.
|
INFO
Should be used for normal logging of things such as start/stop/configuration, but not everything.
|
TRACE
Should be used if the report is only used for real in depth debugging by developers who know the code.
|
WARN
Should be used for things which could later likely cause failures or any very special reporting from
level info which states a non-normal condition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWorseThanOrEqualTo(ReportLevel otherLevel)
Checks if the level given to the method is higher than the own level, or at least equal.
|
static ReportLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReportLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReportLevel TRACE
public static final ReportLevel DEBUG
public static final ReportLevel INFO
public static final ReportLevel WARN
public static final ReportLevel ERROR
public static final ReportLevel FATAL
public static ReportLevel[] values()
for (ReportLevel c : ReportLevel.values()) System.out.println(c);
public static ReportLevel 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 boolean isWorseThanOrEqualTo(ReportLevel otherLevel)
true if called on info with info, warn, error or fatal, but
false if called with trace or debug as those levels are below info.otherLevel - the level to which the own one is comparedCopyright © 2019. All rights reserved.