From: Sasha Date: Wed, 24 Apr 2013 16:02:44 +0000 (+0100) Subject: add Logger to the class X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0e616f00c9950009ef91f85e896ceb72c747d6ec;p=jabaws.git add Logger to the class --- diff --git a/webservices/compbio/stat/servlet/util/StatCollection.java b/webservices/compbio/stat/servlet/util/StatCollection.java index b53fca7..88d96bb 100644 --- a/webservices/compbio/stat/servlet/util/StatCollection.java +++ b/webservices/compbio/stat/servlet/util/StatCollection.java @@ -25,8 +25,11 @@ import java.util.GregorianCalendar; import java.util.Map; import java.util.TreeMap; +import org.apache.log4j.Logger; + import compbio.stat.collector.StatDB; import compbio.stat.collector.StatProcessor; +import compbio.stat.servlet.DisplayStat; import compbio.ws.client.Services; public class StatCollection { @@ -47,6 +50,8 @@ public class StatCollection { private Map allStat; private Map clusterStat; private Map localStat; + + private final static Logger log = Logger.getLogger(StatCollection.class); public Map getAllStat() { return allStat; @@ -94,6 +99,8 @@ public class StatCollection { t.incomplete = db.getIncompleteCount(fromTime, toTime); t.abandoned = db.getAbandonedCount(fromTime, toTime); t.cancelled = db.getCancelledCount(fromTime, toTime); + log.trace("Job counts: total = " + t.total + ", incomplete = " + + t.incomplete + ", abandoned = " + t.abandoned + ", cancelled = " + t.cancelled ); return t; }