[logback-dev] svn commit: r1832 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/action

noreply.ceki at qos.ch noreply.ceki at qos.ch
Wed Oct 15 17:33:04 CEST 2008


Author: ceki
Date: Wed Oct 15 17:33:04 2008
New Revision: 1832

Modified:
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/action/ConversionRuleAction.java

Log:
- generate a status entry when a conversion word is registered

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/action/ConversionRuleAction.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/action/ConversionRuleAction.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/joran/action/ConversionRuleAction.java	Wed Oct 15 17:33:04 2008
@@ -56,19 +56,14 @@
     }
 
     try {
-      //getLogger().debug(
-      //  "About to add conversion rule [{}, {}] to layout", conversionWord, converterClass);
-
-      //LoggerRepository repository = (LoggerRepository) ec.getObjectStack().get(0);
-
       Map<String, String> ruleRegistry = (Map) context.getObject(CoreGlobal.PATTERN_RULE_REGISTRY);
       if(ruleRegistry == null) {
         ruleRegistry = new HashMap<String, String>();
         context.putObject(CoreGlobal.PATTERN_RULE_REGISTRY, ruleRegistry);
       }
       // put the new rule into the rule registry
+      addInfo("registering conversion word "+conversionWord+" with class ["+converterClass+"]");
       ruleRegistry.put(conversionWord, converterClass);
-      
     } catch (Exception oops) {
       inError = true;
       errorMsg = "Could not add conversion rule to PatternLayout.";


More information about the logback-dev mailing list