Class Log4jLoggerTestUtil


  • public class Log4jLoggerTestUtil
    extends Object
    • Constructor Detail

      • Log4jLoggerTestUtil

        public Log4jLoggerTestUtil()
        Creates a watcher of all categories
      • Log4jLoggerTestUtil

        public Log4jLoggerTestUtil​(String category)
        Creates a watcher of the given category
        Parameters:
        category - the category to watch
      • Log4jLoggerTestUtil

        public Log4jLoggerTestUtil​(Class<?> clazz)
        Creates a watcher of the given class category
        Parameters:
        clazz - the class category to watch
    • Method Detail

      • beforeTest

        public void beforeTest()
      • afterTest

        public void afterTest()
      • setLevel

        public void setLevel​(org.apache.logging.log4j.Level level)
      • getMessage

        public String getMessage()
      • reset

        public void reset()
      • setLevel

        public void setLevel​(org.apache.log4j.Level level)