Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.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 | 8d5ca5175038 |
children | 5e38e2924c07 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWQKmsArtifact.java Fri Sep 05 12:58:17 2014 +0200 @@ -50,8 +50,8 @@ extends StaticD4EArtifact implements FacetTypes, WaterLineArtifact { - /** The logger for this class. */ - private static Logger logger = + /** The log for this class. */ + private static Logger log = Logger.getLogger(StaticWQKmsArtifact.class); public static final String STATIC_STATE_NAME = @@ -79,7 +79,7 @@ * Trivial Constructor. */ public StaticWQKmsArtifact() { - logger.debug("StaticWQKmsArtifact.StaticWQKmsArtifact"); + log.debug("StaticWQKmsArtifact.StaticWQKmsArtifact"); } @@ -99,11 +99,11 @@ Document data, List<Class> loadFacets) { - logger.debug("StaticWQKmsArtifact.setup"); + log.debug("StaticWQKmsArtifact.setup"); // Store the 'ids' (from datacage). - if (logger.isDebugEnabled()) { - logger.debug("StaticWQKmsArtifact.setup" + XMLUtils.toString(data)); + if (log.isDebugEnabled()) { + log.debug("StaticWQKmsArtifact.setup" + XMLUtils.toString(data)); } String code = getDatacageIDValue(data); @@ -141,7 +141,7 @@ Object context, CallMeta meta) { - logger.debug("StaticWQKmsArtifact.initialize"); + log.debug("StaticWQKmsArtifact.initialize"); D4EArtifact flys = (D4EArtifact) artifact; // TODO: The river is of no interest, so far., also use importData importData(flys, "river"); @@ -151,11 +151,11 @@ DefaultState state = (DefaultState) getCurrentState(context); state.computeInit(this, hash(), context, meta, fs); if (!fs.isEmpty()) { - logger.debug("Facets to add in StaticWQKmsArtifact.initialize ."); + log.debug("Facets to add in StaticWQKmsArtifact.initialize ."); addFacets(getCurrentStateId(), fs); } else { - logger.debug("No facets to add in StaticWQKmsArtifact.initialize (" + log.debug("No facets to add in StaticWQKmsArtifact.initialize (" + state.getID() + ")."); } } @@ -166,7 +166,7 @@ * @return WQKms according to parameterization (can be null); */ public WQKms getWQKms() { - logger.debug("StaticWQKmsArtifact.getWQKms"); + log.debug("StaticWQKmsArtifact.getWQKms"); int col = Integer.parseInt(getDataAsString("col_pos")); int wst = Integer.parseInt(getDataAsString("wst_id")); @@ -202,7 +202,7 @@ public Lines.LineData getWaterLines(int idx, FastCrossSectionLine csl, double next, double prev, CallContext context ) { - logger.debug("getWaterLines(" + idx + ")/" + identifier()); + log.debug("getWaterLines(" + idx + ")/" + identifier()); List<Point2D> points = csl.getPoints(); @@ -225,7 +225,7 @@ //} if (wAtKm == -1 || Double.isNaN(wAtKm)) { - logger.warn("Waterlevel at km " + km + " unknown."); + log.warn("Waterlevel at km " + km + " unknown."); return new Lines.LineData(new double[][] {{}}, 0d, 0d); }