Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/GaugeDischargeArtifact.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | d3a4b0d5bcd8 |
children | c494f9a61490 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/GaugeDischargeArtifact.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/GaugeDischargeArtifact.java Fri Sep 05 12:58:17 2014 +0200 @@ -49,8 +49,8 @@ extends WINFOArtifact implements FacetTypes { - /** The logger for this class. */ - private static Logger logger = Logger.getLogger(GaugeDischargeArtifact.class); + /** The log for this class. */ + private static Logger log = Logger.getLogger(GaugeDischargeArtifact.class); /** The name of the artifact. */ public static final String ARTIFACT_NAME = "gaugedischarge"; @@ -62,7 +62,7 @@ * Trivial Constructor. */ public GaugeDischargeArtifact() { - logger.debug("GaugeDischargeArtifact.GaugeDischargeArtifact()"); + log.debug("GaugeDischargeArtifact.GaugeDischargeArtifact()"); } @@ -81,10 +81,10 @@ Document data, List<Class> loadFacets) { - logger.debug("GaugeDischargeArtifact.setup"); + log.debug("GaugeDischargeArtifact.setup"); String ids = StaticD4EArtifact.getDatacageIDValue(data); addStringData("ids", ids); - logger.debug("id for gaugedischarge: " + ids); + log.debug("id for gaugedischarge: " + ids); String[] splitIds = ids.split(";"); /* We assume that if an id's string with a ; is given that the * format is <gauge_name>;<discharge_table_id>;<facet_desc> @@ -107,7 +107,7 @@ */ @Override protected void initialize(Artifact art, Object context, CallMeta meta) { - logger.debug("GaugeDischargeArtifact.initialize"); + log.debug("GaugeDischargeArtifact.initialize"); List<Facet> fs = new ArrayList<Facet>(); D4EArtifact artifact = (D4EArtifact) art; importData(artifact, "river"); @@ -121,12 +121,12 @@ DefaultState state = (DefaultState) getCurrentState(context); state.computeInit(this, hash(), context, meta, fs); if (!fs.isEmpty()) { - logger.debug("Facets to add in GaugeDischargeArtifact.initialize. (" + log.debug("Facets to add in GaugeDischargeArtifact.initialize. (" + state.getID() + "/ " + getCurrentStateId() + ")."); addFacets(getCurrentStateId(), fs); } else { - logger.debug("No facets to add in GaugeDischargeArtifact.initialize (" + log.debug("No facets to add in GaugeDischargeArtifact.initialize (" + state.getID() + "/ "+getCurrentStateId()+")."); } } @@ -161,14 +161,14 @@ /* // This one would allow to automatically pick the right Gauge. double [] distance = RiverUtils.getKmRange(this); - logger.debug("getDischargeCurveData: get range"); + log.debug("getDischargeCurveData: get range"); if (distance == null) { return error(new WQKms[0], "no.range.found"); } List<Gauge> gauges = river.determineGauges(distance[0], distance[1]); - logger.debug("getDischargeCurveData: got " + gauges.size() + " gauges"); + log.debug("getDischargeCurveData: got " + gauges.size() + " gauges"); if (gauges.isEmpty()) { return error(new WQKms[0], "no.gauge.selected"); @@ -178,7 +178,7 @@ for (int i = 0; i < names.length; ++i) { names[i] = gauges.get(i).getName(); - logger.debug("getDischargeCurveData: name " + names[i]); + log.debug("getDischargeCurveData: name " + names[i]); } */ @@ -193,7 +193,7 @@ try { tableId = Integer.parseInt(ids[1]); } catch (NumberFormatException e) { - logger.error("Discharge tables ids string is wrong." + + log.error("Discharge tables ids string is wrong." + " Fromat is <gauge_name>;<discharge_table_id>;<facet_desc>" + " Fix your Datacage!"); // Let's rather break down completly then show the wrong data. @@ -214,7 +214,7 @@ String name = getGaugeName(); double [][] values = map.get(name); if (values == null) { - logger.error("No values for this gauge / discharge found."); + log.error("No values for this gauge / discharge found."); return error(new WQKms[0], "no.gauge.found"); } for (int i = 0 ; i < values[0].length; i++) {