|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openbandy.log.LogLevel
public final class LogLevel
The LogLevel class defines the different log levels as integer values, as
strings and the colors that are used to print (i.e. draw) the log messages.
Additionally, it provides some auxiliary conversion methods.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
Field Summary | |
---|---|
static int[] |
colors
Color schema assignment to the different types of log messages |
static int |
DEBUG
|
static int |
DEFAULT
|
static int |
ERROR
The log levels |
static int |
INFO
|
static java.lang.String[] |
levels
Readable string assignment to the different types of log messages |
static int |
NUMBER_OF_LEVELS
|
static int |
WARNING
|
Constructor Summary | |
---|---|
LogLevel()
|
Method Summary | |
---|---|
static int |
getLevelFromString(java.lang.String logLevelString)
Get the int value of the log level which is represented as a string. |
static boolean |
isValidLogLevel(int logLevel)
Check if the given int is a valid log level. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ERROR
public static final int WARNING
public static final int INFO
public static final int DEBUG
public static final int DEFAULT
public static final int NUMBER_OF_LEVELS
public static final java.lang.String[] levels
public static int[] colors
Constructor Detail |
---|
public LogLevel()
Method Detail |
---|
public static int getLevelFromString(java.lang.String logLevelString)
logLevelString
- The log level as a string, e.g. Info or Debug
public static boolean isValidLogLevel(int logLevel)
logLevel
- The log level value to check
logLevel
is between ERROR
and DEBUG
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |