Class LoggerFactory
- java.lang.Object
-
- org.junit.platform.commons.logging.LoggerFactory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddListener(LogRecordListener listener)Add the suppliedLogRecordListenerto the set of registered listeners.static LoggergetLogger(Class<?> clazz)Get aLoggerfor the specified class.static voidremoveListener(LogRecordListener listener)Remove the suppliedLogRecordListenerfrom the set of registered listeners.
-
-
-
Method Detail
-
getLogger
public static Logger getLogger(Class<?> clazz)
Get aLoggerfor the specified class.- Parameters:
clazz- the class for which to get the logger; nevernull- Returns:
- the logger
-
addListener
public static void addListener(LogRecordListener listener)
Add the suppliedLogRecordListenerto the set of registered listeners.
-
removeListener
public static void removeListener(LogRecordListener listener)
Remove the suppliedLogRecordListenerfrom the set of registered listeners.
-
-