Class LogRecorder.Target

java.lang.Object
hudson.logging.LogRecorder.Target
Enclosing class:
LogRecorder

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 Details

    • name

      public final String name
  • Constructor Details

    • Target

      public Target(String name, Level level)
    • Target

      public Target(String name, int level)
    • Target

      @DataBoundConstructor public Target(String name, String level)
  • Method Details

    • getLevel

      public Level getLevel()
    • getName

      public String getName()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • includes

      @Deprecated public boolean includes(LogRecord r)
      Deprecated.
    • matches

      public Boolean matches(LogRecord r)
    • 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()