Package com.google.javascript.jscomp
Class LoggerErrorManager
java.lang.Object
com.google.javascript.jscomp.SortingErrorManager
com.google.javascript.jscomp.BasicErrorManager
com.google.javascript.jscomp.LoggerErrorManager
- All Implemented Interfaces:
ErrorHandler,ErrorManager
An error manager that logs errors and warnings using a logger in addition to
collecting them in memory. Errors are logged at the SEVERE level and warnings
are logged at the WARNING level.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.javascript.jscomp.SortingErrorManager
SortingErrorManager.ErrorReportGenerator -
Constructor Summary
ConstructorsConstructorDescriptionLoggerErrorManager(MessageFormatter formatter, Logger logger) Creates an instance.LoggerErrorManager(Logger logger) Creates an instance with a source-less error formatter. -
Method Summary
Modifier and TypeMethodDescriptionvoidprintln(CheckLevel level, JSError error) Print a message with a trailing new line.protected voidPrint the summary of the compilation - number of errors and warnings.Methods inherited from class com.google.javascript.jscomp.BasicErrorManager
generateReportMethods inherited from class com.google.javascript.jscomp.SortingErrorManager
getErrorCount, getErrors, getTypedPercent, getWarningCount, getWarnings, hasHaltingErrors, report, setTypedPercentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.javascript.jscomp.ErrorManager
shouldReportConformanceViolation
-
Constructor Details
-
LoggerErrorManager
Creates an instance. -
LoggerErrorManager
Creates an instance with a source-less error formatter.
-
-
Method Details
-
println
Description copied from class:BasicErrorManagerPrint a message with a trailing new line. This method is called by theBasicErrorManager.generateReport()method when generating messages.- Specified by:
printlnin classBasicErrorManager
-
printSummary
protected void printSummary()Description copied from class:BasicErrorManagerPrint the summary of the compilation - number of errors and warnings.- Specified by:
printSummaryin classBasicErrorManager
-