Class LogLevelMapping

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

@NullMarked public class LogLevelMapping extends Object
  • Constructor Details Link icon

    • LogLevelMapping Link icon

      public LogLevelMapping()
  • Method Details Link icon

    • normalize Link icon

      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 Link icon

      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 Link icon

      public static Level toLevel(@Nullable String logLevelName)