public final class MessageLevel extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MessageLevel.DisplayNames
Constants that define the types of the messages that are to be recorded
by the LogManager.
|
static class |
MessageLevel.Labels
Constants that define the types of the messages that are to be recorded
by the LogManager.
|
Modifier and Type | Field and Description |
---|---|
static int |
CRITICAL
Message level value that specifies that critical messages are to be recorded.
|
static int |
DEFAULT_MESSAGE_LEVEL
The default message level is WARNING.
|
static int |
DETAIL
Message level value that specifies that detailed, information, warning, error and critical
messages are to be recorded.
|
static int |
ERROR
Message level value that specifies that error messages and critical
messages are to be recorded.
|
static int |
INFO
Message level value that specifies that information, warning, error and critical
messages are to be recorded.
|
static int |
NONE
Message level value that specifies that no messages are to be recorded.
|
static int |
TRACE
Message level value that specifies that all messages are to be recorded.
|
static int |
WARNING
Message level value that specifies that warning, error and critical
messages are to be recorded.
|
Constructor and Description |
---|
MessageLevel() |
Modifier and Type | Method and Description |
---|---|
static Collection |
getDisplayNames() |
static String |
getLabelForLevel(int level) |
static List |
getLabels()
Utility method to get the labels for the levels, starting with the lowest
level and ending with the highest level.
|
static int |
getMaximumLevel() |
static int |
getMinimumLevel() |
static int |
getValidLowerMessageLevel()
Utility method for knowing what is the lower boundary for
a valid message level.
|
static int |
getValidUpperMessageLevel()
Utility method for knowing what is the upper boundary for
a valid message level.
|
static boolean |
isMessageLevelValid(int newMessageLevel)
Utility method to set the level of messages that are recorded for this VM.
|
public static final int NONE
public static final int CRITICAL
public static final int ERROR
public static final int WARNING
public static final int INFO
public static final int DETAIL
public static final int TRACE
public static final int DEFAULT_MESSAGE_LEVEL
public static boolean isMessageLevelValid(int newMessageLevel)
newMessageLevel
- the new level; must be either
MessageLevel.NONE
,
MessageLevel.CRITICAL
,
MessageLevel.ERROR
,
MessageLevel.WARNING
,
MessageLevel.INFO
,
MessageLevel.DETAIL
, or
MessageLevel.TRACE.
IllegalArgumentException
- if the level is out of range.public static int getValidLowerMessageLevel()
#validUpperMessageLevel
public static int getValidUpperMessageLevel()
#validLowerMessageLevel
public static String getLabelForLevel(int level)
public static int getMinimumLevel()
public static int getMaximumLevel()
public static Collection getDisplayNames()
public static List getLabels()
Copyright © 2013–2015 JBoss by Red Hat. All rights reserved.