Package ch.njol.util

Class LoggerFilter

java.lang.Object
ch.njol.util.LoggerFilter
All Implemented Interfaces:
Closeable, Filter

public final class LoggerFilter extends Object implements Filter, Closeable
  • Constructor Details

    • LoggerFilter

      public LoggerFilter(Logger l)
  • Method Details

    • isLoggable

      public boolean isLoggable(@Nullable LogRecord record)
      Specified by:
      isLoggable in interface Filter
    • addFilter

      public final void addFilter(Filter f)
    • removeFilter

      public final boolean removeFilter(Filter f)
    • close

      public void close()
      Description copied from interface: Closeable
      Closes this object. This method may be called multiple times and may or may not have an effect on subsequent calls (e.g. a task might be stopped, but resumed later and stopped again).
      Specified by:
      close in interface Closeable