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 void addListener​(LogRecordListener listener)
    Add the supplied LogRecordListener to the set of registered listeners.
    static Logger getLogger​(java.lang.Class<?> clazz)
    Get a Logger for the specified class.
    static void removeListener​(LogRecordListener listener)
    Remove the supplied LogRecordListener from 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

      public static Logger getLogger​(java.lang.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.