Enum TestLogLevel

    • Method Detail

      • values

        public static TestLogLevel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TestLogLevel c : TestLogLevel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TestLogLevel valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • addLogger

        public TestLogLevel addLogger​(Class<?> className)
        Convenient method for setting a Log-Level in the context of the current TestLogLevel
        Parameters:
        className - if it is null it will set the root-logger for the actual Log-Level
        Returns:
        the TestLogLevel itself in order to us is in a fluent way
      • addLogger

        public TestLogLevel addLogger​(String loggerName)
        Convenient method for setting a Log-Level in context of the current TestLogLevel
        Parameters:
        loggerName - if it is null or empty it will set the root-logger for the actual Log-Level
        Returns:
        the TestLogLevel itself in order to us is in a fluent way
      • parse

        public static TestLogLevel parse​(Level level)
        Parameters:
        level - to be parsed, must not be null
        Returns:
        the mapped level or INFO if the level can not be mapped