Class LoggerFactory

java.lang.Object
org.junit.platform.commons.logging.LoggerFactory

@API(status=INTERNAL, since="1.0") public final class LoggerFactory extends Object
Factory for the Logger facade for JUL.
Since:
1.0
  • Method Details

    • getLogger

      public static Logger getLogger(Class<?> clazz)
      Get a Logger for the specified class.
      Parameters:
      clazz - the class for which to get the logger; never null
      Returns:
      the logger
    • addListener

      public static void addListener(LogRecordListener listener)
      Add the supplied LogRecordListener to the set of registered listeners.
    • removeListener

      public static void removeListener(LogRecordListener listener)
      Remove the supplied LogRecordListener from the set of registered listeners.