Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/MapArtifact.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/MapArtifact.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/MapArtifact.java Fri Sep 05 12:58:17 2014 +0200 @@ -34,7 +34,7 @@ public class MapArtifact extends D4EArtifact { - private static final Logger logger = + private static final Logger log = Logger.getLogger(MapArtifact.class); @Override @@ -46,7 +46,7 @@ Document data, List<Class> loadFacets) { - logger.debug("MapArtifact.setup"); + log.debug("MapArtifact.setup"); this.identifier = identifier; name = "new_map"; @@ -93,23 +93,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); @@ -121,7 +121,7 @@ if (cur.validate(this)) { 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()); @@ -129,14 +129,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."); } } } @@ -156,7 +156,7 @@ List<Facet> facets, Object old) { - logger.debug("MapState.computeAdvance"); + log.debug("MapState.computeAdvance"); this.artifact = artifact;