public class LogUtil
extends java.lang.Object
| Constructor and Description |
|---|
LogUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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. *Copyright © 2006-2021 OPS4J - Open Participation Software for Java. All Rights Reserved.