package uk.ac.ebi.quickgo.index.common.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.StepExecutionListener;

/**
 * Created 02/12/15
 * @author Edd
 */
public class LogStepListener implements StepExecutionListener {
    // logger
    private static final Logger LOGGER = LoggerFactory.getLogger(LogStepListener.class);

    @Override public void beforeStep(StepExecution stepExecution) {
        LOGGER.info("QuickGO indexing STEP '{}' starting.", stepExecution.getStepName());
    }

    @Override public ExitStatus afterStep(StepExecution stepExecution) {
        LOGGER.info("=====================================================");
        LOGGER.info("              QuickGO Step Statistics                 ");
        LOGGER.info("Step name     : {}", stepExecution.getStepName());
        LOGGER.info("Exit status   : {}", stepExecution.getExitStatus().getExitCode());
        LOGGER.info("Read count    : {}", stepExecution.getReadCount());
        LOGGER.info("Write count   : {}", stepExecution.getWriteCount());
        LOGGER.info("Skip count    : {} ({} read / {} write)", stepExecution.getSkipCount(), stepExecution
                .getReadSkipCount(), stepExecution.getWriteSkipCount());
        LOGGER.info("=====================================================");
        return stepExecution.getExitStatus();
    }
}

@@ -1231,16 +1231,31 @@
 ead / %7B%7D
+ processing /%7B%7D
  write)%22
@@ -1285,30 +1285,16 @@
 Count(),
- stepExecution
 %0A       
@@ -1302,16 +1302,29 @@
         
+stepExecution
 .getRead
@@ -1335,16 +1335,69 @@
 Count(),
+ stepExecution.getProcessSkipCount(),%0A               
  stepExe

Add logging for processing skips.