Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/ChartArtifact.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 | 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/ChartArtifact.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/ChartArtifact.java Fri Sep 05 12:58:17 2014 +0200 @@ -40,7 +40,7 @@ /** Artifact, open to generate any (?) out. */ public class ChartArtifact extends D4EArtifact { - private static final Logger logger = + private static final Logger log = Logger.getLogger(ChartArtifact.class); @Override @@ -52,7 +52,7 @@ Document data, List<Class> loadFacets) { - logger.debug("ChartArtifact.setup"); + log.debug("ChartArtifact.setup"); this.identifier = identifier; name = "new_chart"; @@ -95,23 +95,23 @@ RiverContext.STATE_ENGINE_KEY); for (String stateId: stateIds) { - logger.debug("Append output modes for state: " + stateId); + log.debug("Append output modes for state: " + stateId); DefaultState state = (DefaultState) engine.getState(stateId); List<Output> list = state.getOutputs(); if (list == null || list.isEmpty()) { - logger.debug("-> No output modes for this state."); + log.debug("-> No output modes for this state."); continue; } List<Facet> fs = getFacets(stateId); if (fs == null || fs.isEmpty()) { - logger.debug("No facets for previous state found."); + log.debug("No facets for previous state found."); continue; } - logger.debug("Found " + fs.size() + " facets in previous states."); + log.debug("Found " + fs.size() + " facets in previous states."); List<Output> generated = generateOutputs(list, fs); @@ -122,7 +122,7 @@ DefaultState cur = (DefaultState) getCurrentState(context); List<Output> list = cur.getOutputs(); if (list != null && list.size() > 0) { - logger.debug( + log.debug( "Append output modes for current state: " + cur.getID()); List<Facet> fs = getFacets(cur.getID()); @@ -130,14 +130,14 @@ if (fs != null && fs.size() > 0) { List<Output> generated = generateOutputs(list, fs); - logger.debug("Found " + fs.size() + " current facets."); + log.debug("Found " + fs.size() + " current facets."); if (!generated.isEmpty()) { ProtocolUtils.appendOutputModes( doc, outs, generated); } } else { - logger.debug("No facets found for the current state."); + log.debug("No facets found for the current state."); } } } @@ -182,7 +182,7 @@ List<Facet> facets, Object old) { - logger.debug("ChartState.computeAdvance"); + log.debug("ChartState.computeAdvance"); return null;