use of com.synopsys.integration.detect.workflow.report.writer.DebugLogReportWriter in project synopsys-detect by blackducksoftware.
the class ExtractionLogger method extractionStarted.
public void extractionStarted(DetectorEvaluation detectorEvaluation) {
DetectExtractionEnvironment detectExtractionEnvironment = (DetectExtractionEnvironment) detectorEvaluation.getExtractionEnvironment();
Integer i = detectExtractionEnvironment.getExtractionId().getId();
String progress = Integer.toString((int) Math.floor((i * 100.0f) / extractionCount));
logger.debug(String.format("Extracting %d of %d (%s%%)", i + 1, extractionCount, progress));
logger.debug(ReportConstants.SEPARATOR);
logger.debug("Starting extraction: " + detectorEvaluation.getDetectorType() + " - " + detectorEvaluation.getDetectorRule().getName());
logger.debug("Identifier: " + detectExtractionEnvironment.getExtractionId().toUniqueString());
ObjectPrinter.printObjectPrivate(new DebugLogReportWriter(logger), detectorEvaluation.getDetectable());
logger.debug(ReportConstants.SEPARATOR);
}
Aggregations