Class LogRecorder.Target

  • Enclosing class:

    public static final class LogRecorder.Target
    extends Object
    Logger that this recorder monitors, and its log level. Just a pair of (logger name,level) with convenience methods.
    • Field Detail

      • name

        public final String name
    • Constructor Detail

      • Target

        public Target​(String name,
                      int level)
      • Target

        public Target​(String name,
                      String level)
    • Method Detail

      • getLevel

        public Level getLevel()
      • getName

        public String getName()
      • hashCode

        public int hashCode()
        hashCode in class Object
      • getLogger

        public Logger getLogger()
      • enable

        public void enable()
        Makes sure that the logger passes through messages at the correct level to us.
      • disable

        public void disable()