Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/server/ChartServiceHelper.java @ 1367:ab8eb2f544f2
Replaced stdout and stderr logging with log4j loggers in server classes.
flys-client/trunk@3069 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 25 Oct 2011 12:31:15 +0000 |
parents | 19f621663b7a |
children | 1780841d79af |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/ChartServiceHelper.java Tue Oct 25 11:07:14 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/ChartServiceHelper.java Tue Oct 25 12:31:15 2011 +0000 @@ -5,6 +5,8 @@ import org.w3c.dom.Document; import org.w3c.dom.Element; +import org.apache.log4j.Logger; + import de.intevation.artifacts.common.ArtifactNamespaceContext; import de.intevation.artifacts.common.utils.XMLUtils; import de.intevation.artifacts.common.utils.XMLUtils.ElementCreator; @@ -15,6 +17,10 @@ */ public class ChartServiceHelper { + private static final Logger logger = + Logger.getLogger(ChartServiceHelper.class); + + /** The default chart width if no value is specified in the request.*/ public static final int DEFAULT_CHART_WIDTH = 600; @@ -35,7 +41,7 @@ * @return a document to adjust chart settings. */ protected static Document getChartAttributes(Map<String, String> req) { - System.out.println("ChartServiceHelper.getChartAttributes"); + logger.debug("ChartServiceHelper.getChartAttributes"); Document doc = XMLUtils.newDocument(); @@ -71,7 +77,7 @@ Element attributes, ElementCreator ec) { - System.out.println("ChartServiceHelper.appendChartSize"); + logger.debug("ChartServiceHelper.appendChartSize"); Element size = ec.create("size"); @@ -104,7 +110,7 @@ Element attributes, ElementCreator ec) { - System.out.println("ChartServiceHelper.appendXRange"); + logger.debug("ChartServiceHelper.appendXRange"); Element range = ec.create("xrange"); @@ -134,7 +140,7 @@ Element attributes, ElementCreator ec) { - System.out.println("ChartServiceHelper.appendYRange"); + logger.debug("ChartServiceHelper.appendYRange"); Element range = ec.create("yrange"); @@ -165,7 +171,7 @@ ElementCreator ec ) { - System.out.println("ChartServiceHelper.appendFormat"); + logger.debug("ChartServiceHelper.appendFormat"); String formatStr = req.get("format"); if (formatStr == null || formatStr.length() == 0) {