Search in sources :

Example 1 with DebugLogReportWriter

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);
}
Also used : DetectExtractionEnvironment(com.synopsys.integration.detect.tool.detector.DetectExtractionEnvironment) DebugLogReportWriter(com.synopsys.integration.detect.workflow.report.writer.DebugLogReportWriter)

Aggregations

DetectExtractionEnvironment (com.synopsys.integration.detect.tool.detector.DetectExtractionEnvironment)1 DebugLogReportWriter (com.synopsys.integration.detect.workflow.report.writer.DebugLogReportWriter)1