public class LogLevelMapping
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEBUG
WebDriver log level DEBUG which is mapped to Level.FINE.
|
private static com.google.common.collect.ImmutableMap<java.lang.Integer,java.util.logging.Level> |
levelMap |
Constructor and Description |
---|
LogLevelMapping() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getName(java.util.logging.Level level)
Converts the JDK level to a name supported by Selenium.
|
static java.util.logging.Level |
normalize(java.util.logging.Level level)
Normalizes the given level to one of those supported by Selenium.
|
static java.util.logging.Level |
toLevel(java.lang.String logLevelName) |
private static final java.lang.String DEBUG
private static com.google.common.collect.ImmutableMap<java.lang.Integer,java.util.logging.Level> levelMap
public static java.util.logging.Level normalize(java.util.logging.Level level)
level
- log level to normalizepublic static java.lang.String getName(java.util.logging.Level level)
level
- log level to get the string name ofpublic static java.util.logging.Level toLevel(java.lang.String logLevelName)