Class WarningLogger

java.lang.Object
proguard.classfile.util.WarningPrinter
proguard.classfile.util.WarningLogger

public class WarningLogger extends WarningPrinter
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    int
    Returns the number of warnings printed so far.
    void
    note(String className, String message)
    Prints out the given note without incrementing the warning count, if the given class name passes the class name filter.
    void
    note(String className, String className2, String message)
    Prints out the given note without incrementing the warning count, if the given class nams pass the class name filter.
    void
    print(String className, String message)
    Prints out the given warning and increments the warning count, if the given class name passes the class name filter.
    void
    print(String className, String className2, 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 proguard.classfile.util.WarningPrinter

    accepts, accepts

    Methods inherited from class java.lang.Object

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

    • WarningLogger

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

      public WarningLogger(org.apache.logging.log4j.Logger logger, List<String> classFilter)
  • Method Details

    • getWarningCount

      public int getWarningCount()
      Description copied from class: WarningPrinter
      Returns the number of warnings printed so far.
      Overrides:
      getWarningCount in class WarningPrinter
    • print

      public void print(String className, 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(String className, String className2, 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(String className, 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(String className, String className2, 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