Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWKmsArtifact.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 | 04367906f158 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWKmsArtifact.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/StaticWKmsArtifact.java Fri Sep 05 12:58:17 2014 +0200 @@ -58,8 +58,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(StaticWKmsArtifact.class); private static final String NAME = "staticwkms"; @@ -86,7 +86,7 @@ * Trivial Constructor. */ public StaticWKmsArtifact() { - logger.debug("StaticWKmsArtifact.StaticWKmsArtifact"); + log.debug("StaticWKmsArtifact.StaticWKmsArtifact"); } @Override @@ -106,12 +106,12 @@ Document data, List<Class> loadFacets) { - logger.debug("StaticWKmsArtifact.setup"); + log.debug("StaticWKmsArtifact.setup"); state = new StaticState(STATIC_STATE_NAME); - if (logger.isDebugEnabled()) { - logger.debug(XMLUtils.toString(data)); + if (log.isDebugEnabled()) { + log.debug(XMLUtils.toString(data)); } List<Facet> fs = new ArrayList<Facet>(); @@ -213,7 +213,7 @@ Object context, CallMeta meta) { - logger.debug("StaticWKmsArtifact.initialize"); + log.debug("StaticWKmsArtifact.initialize"); D4EArtifact winfo = (D4EArtifact) artifact; // TODO: The river is of no interest, so far. addData("river", winfo.getData("river")); @@ -273,7 +273,7 @@ * @return WKms according to parameterization (can be null); */ public WKms getWKms(int idx) { - logger.debug("StaticWKmsArtifact.getWKms"); + log.debug("StaticWKmsArtifact.getWKms"); return WKmsFactory.getWKms( Integer.parseInt(getDataAsString("col_pos")), @@ -415,7 +415,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(); @@ -436,7 +436,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); }