public final class EventLevels extends Object
EventLevels. This is more typesafe than using the Strings in that class.
This is not an enum because the levels can't be loaded until Johnson is initialised.
| Modifier and Type | Method and Description |
|---|---|
static EventLevel |
error()
Returns the
EventLevel.ERROR event level, if it has been defined. |
static EventLevel |
fatal()
Returns the
EventLevel.FATAL event level, if it has been defined. |
static EventLevel |
warning()
Returns the
EventLevel.WARNING event level, if it has been defined. |
@Nullable public static EventLevel error()
EventLevel.ERROR event level, if it has been defined.EventLevel.ERROR level, or null if the application does not define itIllegalStateException - if Johnson has not been initialised@Nullable public static EventLevel fatal()
EventLevel.FATAL event level, if it has been defined.EventLevel.FATAL level, or null if the application does not define itIllegalStateException - if Johnson has not been initialised@Nullable public static EventLevel warning()
EventLevel.WARNING event level, if it has been defined.EventLevel.WARNING level, or null if the application does not define itIllegalStateException - if Johnson has not been initialisedCopyright © 2018 Atlassian. All rights reserved.