Class LoggerFactory
java.lang.Object
org.junit.platform.commons.logging.LoggerFactory
@API(status=INTERNAL,
since="1.0")
public final class LoggerFactory
extends java.lang.Object
Factory for the
Logger facade for JUL.- Since:
- 1.0
-
Method Summary
Modifier and Type Method Description static voidaddListener(LogRecordListener listener)Add the suppliedLogRecordListenerto the set of registered listeners.static LoggergetLogger(java.lang.Class<?> clazz)Get aLoggerfor the specified class.static voidremoveListener(LogRecordListener listener)Remove the suppliedLogRecordListenerfrom the set of registered listeners.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getLogger
Get aLoggerfor the specified class.- Parameters:
clazz- the class for which to get the logger; nevernull- Returns:
- the logger
-
addListener
Add the suppliedLogRecordListenerto the set of registered listeners. -
removeListener
Remove the suppliedLogRecordListenerfrom the set of registered listeners.
-