Class LogManager


  • public class LogManager
    extends java.lang.Object
    Since:
    2018-03-02
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addListener​(LogListener listener)
      Adds a log listener that will be notified of logging events.
      static Logger getLogger​(java.lang.Class<?> clazz)
      Gets the Logger instance of the specified class.
      static void removeListener​(LogListener listener)
      Remove a log listener.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLogger

        public static Logger getLogger​(java.lang.Class<?> clazz)
        Gets the Logger instance of the specified class.
        Parameters:
        clazz - the class, must not be null.
        Returns:
        the logger instance.
      • addListener

        public static void addListener​(LogListener listener)
        Adds a log listener that will be notified of logging events. You can use the DefaultLogListener that prints logs to the standard output in a format similar to Log4j2
        Parameters:
        listener - the listener.
      • removeListener

        public static void removeListener​(LogListener listener)
        Remove a log listener.
        Parameters:
        listener - the listener.