Helper class used to convert log level values.
Description
The LogLevelConverter class is used to convert log level values.
Static methods
toInteger
Converts log level to a number.
public static
int toInteger(LogLevel level)
- level: LogLevel - a log level to convert.
- returns: int - log level number value.
toLogLevel
Converts numbers and strings to standard log level values.
public static
LogLevel toLogLevel(Object value, LogLevel defaultValue)
- value: Object - a value to be converted
- defaultValue: LogLevel - a default value if conversion is not possible
- returns: LogLevel - converted log level
toString
Converts log level to a string.
public static
String toString(LogLevel level)
- level: LogLevel - a log level to convert
- returns: String - log level name string.