Enum Constant and Description |
---|
DEBUG |
DUMP |
ERROR |
FATAL |
INFO |
OFF |
VERBOSE |
WARNING |
SUB_KEY_ACTION, SUB_KEY_COLUMN, SUB_KEY_CONFIRM, SUB_KEY_CONST, SUB_KEY_DBO, SUB_KEY_DEMO, SUB_KEY_ERROR, SUB_KEY_FIELD, SUB_KEY_GUI, SUB_KEY_HELP, SUB_KEY_INFO, SUB_KEY_LABEL, SUB_KEY_MENU, SUB_KEY_MESSAGE, SUB_KEY_MISC, SUB_KEY_STATUS, SUB_KEY_TIP, SUB_KEY_TOOL, SUB_KEY_WINDOW, SUB_KEY_WORKFLOW
Modifier and Type | Method and Description |
---|---|
static LogLevel |
fromInt(int value) |
static LogLevel |
fromString(java.lang.String levelName) |
java.lang.String |
getAppKey()
Returns the base prefix of the key
|
static LogLevel[] |
getLogLevels() |
java.lang.String |
getShortName() |
java.lang.String |
getSubKey()
Returns the path of the key
|
java.lang.String |
getText(java.lang.Object... args)
Returns the translated text, which is the value of the translation key
as stored in the translation map.
|
boolean |
isDebug() |
boolean |
isDump() |
boolean |
isError() |
boolean |
isErrorOrWarning() |
boolean |
isFatal() |
boolean |
isInfo() |
boolean |
isOff() |
boolean |
isVerbose() |
boolean |
isWarning() |
boolean |
mustPrint(LogLevel level)
Tells whether this LogLevel as the currently configured one
would allow to print the given log-level.
|
static LogLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogLevel OFF
public static final LogLevel FATAL
public static final LogLevel ERROR
public static final LogLevel WARNING
public static final LogLevel INFO
public static final LogLevel VERBOSE
public static final LogLevel DEBUG
public static final LogLevel DUMP
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static LogLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isOff()
public boolean isError()
public boolean isFatal()
public boolean isWarning()
public boolean isInfo()
public boolean isVerbose()
public boolean isDebug()
public boolean isDump()
public boolean isErrorOrWarning()
public java.lang.String getSubKey()
NlsKey
public java.lang.String getAppKey()
NlsKey
public java.lang.String getShortName()
public java.lang.String getText(java.lang.Object... args)
NlsKey
public static LogLevel[] getLogLevels()
public static LogLevel fromInt(int value)
public static LogLevel fromString(java.lang.String levelName)
public boolean mustPrint(LogLevel level)
level
- the current desired LogLevel to be printedCopyright © 2014 EsprIT-Systems. All Rights Reserved.