Skip to content

Commit

Permalink
slf4j logging
Browse files Browse the repository at this point in the history
  • Loading branch information
csrster committed Sep 15, 2016
1 parent 588d007 commit 09265d0
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.apache.commons.lang.StringUtils;
import org.archive.format.warc.WARCConstants.WARCRecordType;
Expand All @@ -26,8 +24,8 @@
import org.archive.modules.writer.WARCWriterProcessor;
import org.archive.util.ArchiveUtils;
import org.archive.util.anvl.ANVLRecord;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* Custom NAS WARCWriterProcessor addding NetarchiveSuite metadata to the WARCInfo records written
Expand All @@ -39,7 +37,7 @@
public class NasWARCProcessor extends WARCWriterProcessor {

/** Logger instance. */
private static final Logger logger = Logger.getLogger(NasWARCProcessor.class.getName());
private static final Logger logger = LoggerFactory.getLogger(NasWARCProcessor.class);


// Constants for the contents of the WarcInfo record
Expand Down Expand Up @@ -187,7 +185,7 @@ public List<String> getMetadata() {
(String) metadataMap.get(HARVESTINFO_AUDIENCE));
}
} catch (Exception e) {
logger.log(Level.WARNING, "Error processing harvest info" , e);
logger.warn("Error processing harvest info" , e);
}

// really ugly to return as List<String>, but changing would require
Expand Down

0 comments on commit 09265d0

Please sign in to comment.