diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadLSFacet.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 eb48b244921d
children c657ddcf1fa6
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadLSFacet.java	Fri Sep 05 12:54:58 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadLSFacet.java	Fri Sep 05 12:58:17 2014 +0200
@@ -43,7 +43,7 @@
 extends DataFacet
 implements StaticFacet
 {
-    private static Logger logger = Logger.getLogger(SedimentLoadLSFacet.class);
+    private static Logger log = Logger.getLogger(SedimentLoadLSFacet.class);
 
     /* Aheinecke we probably need to get the kind and split this up here
      * in some way */
@@ -61,7 +61,7 @@
 
     @Override
     public Object getData(Artifact artifact, CallContext context) {
-        logger.debug("get Data");
+        log.debug("get Data");
         D4EArtifact arti = (D4EArtifact) artifact;
 
         String idStr = arti.getDataAsString("load_id");
@@ -70,7 +70,7 @@
         SedimentLoadLS theLoad = SedimentLoadLS.getSedimentLoadById(id);
 
         if (theLoad == null) {
-            logger.error("No load found for id: " + idStr);
+            log.error("No load found for id: " + idStr);
             return null;
         }
 
@@ -92,7 +92,7 @@
 
     @Override
     public void setup(Artifact artifact, Document data, CallMeta callMeta) {
-        logger.debug("setup");
+        log.debug("setup");
         String code = D4EArtifact.getDatacageIDValue(data);
         String[] split = code.split(";");
         String idStr = split[0];
@@ -101,15 +101,15 @@
         int id = Integer.valueOf(idStr);
         SedimentLoadLS theLoad = SedimentLoadLS.getSedimentLoadById(id);
         if (theLoad == null) {
-            logger.error("No load found for id: " + idStr);
+            log.error("No load found for id: " + idStr);
             return;
         }
-        logger.debug("Setting up SedimentLoadLSFacet for id: " + id);
+        log.debug("Setting up SedimentLoadLSFacet for id: " + id);
         if (theLoad.getGrainFraction() != null) {
-            logger.debug("GrainFraction: " + theLoad.getGrainFraction().getName());
+            log.debug("GrainFraction: " + theLoad.getGrainFraction().getName());
         }
-        logger.debug("Kind: " + theLoad.getKind());
-        logger.debug("Unit: " + theLoad.getUnit().getName());
+        log.debug("Kind: " + theLoad.getKind());
+        log.debug("Unit: " + theLoad.getUnit().getName());
 
         /* Name has the pattern sedimentload.<unit>.<grainfraction_name>
          * this is partly done for backwards compatibility and theming.
@@ -135,7 +135,7 @@
         }
         name += "." + gfName;
 
-        logger.debug("Created facet: " + name);
+        log.debug("Created facet: " + name);
 
         description = Resources.getMsg(
                 callMeta,

http://dive4elements.wald.intevation.org