|
Knopflerfish OSGi 3.4.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knopflerfish.service.log.LogUtil
Utility class for the LogService interface. It exports methods that translates between the numeric values of the severity level constants and human readable strings.
| Constructor Summary | |
LogUtil()
|
|
| Method Summary | |
static java.lang.String |
fromLevel(int level)
Converts from a numeric log severity level to a string. |
static java.lang.String |
fromLevel(int level,
int length)
Converts from a numeric log severity level to a left justified string of at least the given length. |
static int |
toLevel(java.lang.String level,
int def)
Converts a string representing a log severity level to an int. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LogUtil()
| Method Detail |
public static java.lang.String fromLevel(int level)
level - is the log severity level.
public static java.lang.String fromLevel(int level,
int length)
level - is the log severity level.length - the minimum length of the resulting string.
public static int toLevel(java.lang.String level,
int def)
level - The string to convert.def - Default value to use if the string is not recognized
as a log level.
|
Knopflerfish OSGi 3.4.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||