Class FsAcls.OnceWarnings

java.lang.Object
com.norconex.crawler.fs.fetch.acl.FsAcls.OnceWarnings
Enclosing class:
FsAcls

public static final class FsAcls.OnceWarnings extends Object
Logs warnings once per crawl rather than once per document.
  • Constructor Details

    • OnceWarnings

      public OnceWarnings()
  • Method Details

    • warn

      public void warn(Logger log, String key, String msg, Object... args)
      Logs a warning the first time a key is seen.
      Parameters:
      log - the logger
      key - what the warning is about
      msg - the warning, logged with the arguments
      args - the arguments
    • clear

      public void clear()
      Forgets the warnings logged so far.