Class WarningLogger

    • Constructor Summary

      Constructors 
      Constructor Description
      WarningLogger​(org.apache.logging.log4j.Logger logger)  
      WarningLogger​(org.apache.logging.log4j.Logger logger, java.util.List<java.lang.String> classFilter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getWarningCount()
      Returns the number of warnings printed so far.
      void note​(java.lang.String className, java.lang.String message)
      Prints out the given note without incrementing the warning count, if the given class name passes the class name filter.
      void note​(java.lang.String className, java.lang.String className2, java.lang.String message)
      Prints out the given note without incrementing the warning count, if the given class nams pass the class name filter.
      void print​(java.lang.String className, java.lang.String message)
      Prints out the given warning and increments the warning count, if the given class name passes the class name filter.
      void print​(java.lang.String className, java.lang.String className2, java.lang.String message)
      Prints out the given warning and increments the warning count, if the given class names pass the class name filter.
      • Methods inherited from class java.lang.Object

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

      • WarningLogger

        public WarningLogger​(org.apache.logging.log4j.Logger logger)
      • WarningLogger

        public WarningLogger​(org.apache.logging.log4j.Logger logger,
                             java.util.List<java.lang.String> classFilter)
    • Method Detail

      • print

        public void print​(java.lang.String className,
                          java.lang.String message)
        Description copied from class: WarningPrinter
        Prints out the given warning and increments the warning count, if the given class name passes the class name filter.
        Overrides:
        print in class WarningPrinter
      • print

        public void print​(java.lang.String className,
                          java.lang.String className2,
                          java.lang.String message)
        Description copied from class: WarningPrinter
        Prints out the given warning and increments the warning count, if the given class names pass the class name filter.
        Overrides:
        print in class WarningPrinter
      • note

        public void note​(java.lang.String className,
                         java.lang.String message)
        Description copied from class: WarningPrinter
        Prints out the given note without incrementing the warning count, if the given class name passes the class name filter.
        Overrides:
        note in class WarningPrinter
      • note

        public void note​(java.lang.String className,
                         java.lang.String className2,
                         java.lang.String message)
        Description copied from class: WarningPrinter
        Prints out the given note without incrementing the warning count, if the given class nams pass the class name filter.
        Overrides:
        note in class WarningPrinter