public class LevelHelper extends Object
Modifier and Type | Field and Description |
---|---|
static List<Level> |
levels |
static Map<String,Level> |
levelsByName |
static Map<Integer,Level> |
levelsByValue |
Constructor and Description |
---|
LevelHelper() |
Modifier and Type | Method and Description |
---|---|
static Comparator<Level> |
comparator()
Compare on
Level.intValue() |
static Level |
findLevel(String name)
Simplification: use delegate to
Level.parse(String) even if the behavior is slightly different for localized log levels. |
static Severity |
toSeverity(Level level) |
@Nullable public static Level findLevel(@Nullable String name)
Level.parse(String)
even if the behavior is slightly different for localized log levels.name
- null
or empty returns null
public static Comparator<Level> comparator()
Level.intValue()
Copyright © 2014–2019. All rights reserved.