Class LogLevelMapping

java.lang.Object
org.openqa.selenium.logging.LogLevelMapping

public class LogLevelMapping extends Object
  • Constructor Details

    • LogLevelMapping

      public LogLevelMapping()
  • Method Details

    • normalize

      public static Level normalize(Level level)
      Normalizes the given level to one of those supported by Selenium.
      Parameters:
      level - log level to normalize
      Returns:
      the selenium supported corresponding log level
    • getName

      public static String getName(Level level)
      Converts the JDK level to a name supported by Selenium.
      Parameters:
      level - log level to get the string name of
      Returns:
      string name representation of the level selenium supports
    • toLevel

      public static Level toLevel(String logLevelName)