+ private static void logPropertyValue(String key, String value) {
+ if ((!StringUtils.containsIgnoreCase(key, "pass")) && (!StringUtils.containsIgnoreCase(key, "secret"))) {
+ logger.info(Msg.PROPERTY_VALUE, key, value);
+ } else if (logger.isDebugEnabled()) {
+ logger.debug(Msg.PROPERTY_VALUE, key, value);
+ } else {
+ logger.info(Msg.PROPERTY_VALUE, key, value.replaceAll(".", "*"));
+ }
+ }
+