public class WarningLogger extends WarningPrinter
Constructor and Description |
---|
WarningLogger(org.apache.logging.log4j.Logger logger) |
WarningLogger(org.apache.logging.log4j.Logger logger,
java.util.List<java.lang.String> classFilter) |
Modifier and Type | Method and 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.
|
accepts, accepts
public WarningLogger(org.apache.logging.log4j.Logger logger)
public WarningLogger(org.apache.logging.log4j.Logger logger, java.util.List<java.lang.String> classFilter)
public int getWarningCount()
WarningPrinter
getWarningCount
in class WarningPrinter
public void print(java.lang.String className, java.lang.String message)
WarningPrinter
print
in class WarningPrinter
public void print(java.lang.String className, java.lang.String className2, java.lang.String message)
WarningPrinter
print
in class WarningPrinter
public void note(java.lang.String className, java.lang.String message)
WarningPrinter
note
in class WarningPrinter
public void note(java.lang.String className, java.lang.String className2, java.lang.String message)
WarningPrinter
note
in class WarningPrinter