Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/themes/ThemeMapping.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 | 2c8e5bad8699 |
children | 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/themes/ThemeMapping.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/themes/ThemeMapping.java Fri Sep 05 12:58:17 2014 +0200 @@ -21,8 +21,8 @@ */ public class ThemeMapping implements Serializable { - /** The logger that is used in this class */ - private static Logger logger = Logger.getLogger(ThemeMapping.class); + /** The log that is used in this class */ + private static Logger log = Logger.getLogger(ThemeMapping.class); /** Name from which to map. */ protected String from; @@ -98,11 +98,11 @@ Matcher m = pattern.matcher(text); if (m.matches()) { - logger.debug("Pattern matches: " + text); + log.debug("Pattern matches: " + text); return true; } else { - logger.debug( + log.debug( "Pattern '"+ text + "' does not match: " + this.patternStr); return false; } @@ -127,7 +127,7 @@ // Operator split. String[] parts = masterAttr.split("=="); if (parts.length != 2) { - logger.error("ThemeMapping could not parse masterAttr.-condition:_" + log.error("ThemeMapping could not parse masterAttr.-condition:_" + masterAttr + "_"); return false; } @@ -135,11 +135,11 @@ // Test. String artData = artifact.getDataAsString(parts[0]); if (artData != null && artData.equals(parts[1])) { - logger.debug("Matches master Attribute."); + log.debug("Matches master Attribute."); return true; } else { - logger.debug("Does not match master Attribute."); + log.debug("Does not match master Attribute."); return false; } } @@ -155,11 +155,11 @@ } if (this.output.equals(output)) { - logger.debug("Output matches this mapping: " + output); + log.debug("Output matches this mapping: " + output); return true; } else { - logger.debug("Output '"+ output +"' does not match: "+ this.output); + log.debug("Output '"+ output +"' does not match: "+ this.output); return false; } }