@ParametersAreNonnullByDefault public class EventLevel extends Object
Event.
Applications using Johnson are free to define their own levels with their own
semantics; they can use the constants below or not. However be aware that some
of the pre-defined levels below have special meaning to the Johnson framework.
For more details, search the source code for their usage.| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR
This level might indicate a non-fatal error, e.g.
|
static String |
FATAL
This level typically means that the application is unable to start.
|
static String |
WARNING
This level typically indicates a condition that requires attention
but does not materially affect the operation of the application.
|
| Constructor and Description |
|---|
EventLevel(String level,
String description)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static EventLevel |
get(String level)
Returns the configured
EventLevel with the given name. |
String |
getDescription() |
String |
getLevel() |
int |
hashCode() |
String |
toString() |
public static final String ERROR
public static final String FATAL
public static final String WARNING
@Nullable public static EventLevel get(String level)
EventLevel with the given name.level - the name of the level to findnull if no such level is defined by the applicationIllegalStateException - if Johnson has not been initialisedCopyright © 2017 Atlassian. All rights reserved.