Package com.atlassian.bamboo.utils
Class Log4jLoggerTestUtil
- java.lang.Object
-
- com.atlassian.bamboo.utils.Log4jLoggerTestUtil
-
public class Log4jLoggerTestUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description Log4jLoggerTestUtil()
Creates a watcher of all categoriesLog4jLoggerTestUtil(Class<?> clazz)
Creates a watcher of the given class categoryLog4jLoggerTestUtil(String category)
Creates a watcher of the given category
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterTest()
void
beforeTest()
String
getMessage()
void
reset()
void
setLevel(org.apache.log4j.Level level)
void
setLevel(org.apache.logging.log4j.Level level)
-
-
-
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)
-
-