Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityCalculation.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 | be0e3b93144c |
children | 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityCalculation.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityCalculation.java Fri Sep 05 12:58:17 2014 +0200 @@ -26,26 +26,26 @@ /** Calculate flow velocity. */ public class FlowVelocityCalculation extends Calculation { - /** Own logger. */ - private static final Logger logger = + /** Own log. */ + private static final Logger log = Logger.getLogger(FlowVelocityCalculation.class); public CalculationResult calculate(FlowVelocityAccess access) { - logger.info("FlowVelocityCalculation.calculate"); + log.info("FlowVelocityCalculation.calculate"); int[] mainIds = access.getMainChannels(); int[] totalIds = access.getTotalChannels(); - if (logger.isDebugEnabled()) { + if (log.isDebugEnabled()) { Artifact a = access.getArtifact(); - logger.debug("Artifact '" + a.identifier() + "' contains:"); + log.debug("Artifact '" + a.identifier() + "' contains:"); if (mainIds != null) { - logger.debug(" " + mainIds.length + " main channel ids"); + log.debug(" " + mainIds.length + " main channel ids"); } if (totalIds != null) { - logger.debug(" " + totalIds.length + " total channel ids"); + log.debug(" " + totalIds.length + " total channel ids"); } } @@ -100,7 +100,7 @@ ) { String riverName = access.getRiverName(); if (riverName == null) { - logger.warn("No river name found"); + log.warn("No river name found"); return Collections.<FlowVelocityModel>emptyList(); } @@ -124,7 +124,7 @@ List<FlowVelocityModelValue> values = FlowVelocityModelValue.getValues(model, kmLo, kmHi); - logger.debug("Found " + values.size() + " values for model."); + log.debug("Found " + values.size() + " values for model."); for (FlowVelocityModelValue value: values) { data.addKM(value.getStation().doubleValue()); @@ -159,7 +159,7 @@ double kmLo = access.getLowerKM(); double kmHi = access.getUpperKM(); - logger.debug("Prepare data for km range: " + kmLo + " - " + kmHi); + log.debug("Prepare data for km range: " + kmLo + " - " + kmHi); FlowVelocityData[] data = new FlowVelocityData[models.size()]; for (int i = 0, n = models.size(); i < n; i++) { @@ -170,7 +170,7 @@ data[i] = d; } - logger.debug("Calculation contains " + data.length + " data items."); + log.debug("Calculation contains " + data.length + " data items."); return new CalculationResult(data, this); }