logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: jakarta-log4j/src/java/org/apache/log4j/pattern PatternParser.java
Date Thu, 10 Jul 2003 17:08:46 GMT
ceki        2003/07/10 10:08:46

  Modified:    src/java/org/apache/log4j/pattern PatternParser.java
  Log:
  
  Added a new pattern identifier, i.e. 'level', which is a word and not just a letter.
  
  Not tested yet.
  
  Revision  Changes    Path
  1.3       +3 -1      jakarta-log4j/src/java/org/apache/log4j/pattern/PatternParser.java
  
  Index: PatternParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/pattern/PatternParser.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PatternParser.java	25 Jun 2003 16:47:54 -0000	1.2
  +++ PatternParser.java	10 Jul 2003 17:08:46 -0000	1.3
  @@ -100,12 +100,14 @@
       globalRulesRegistry.put("c", LoggerPatternConverter.class.getName());
       globalRulesRegistry.put("C", ClassNamePatternConverter.class.getName());
       globalRulesRegistry.put("F", FileLocationPatternConverter.class.getName());
  -    globalRulesRegistry.put("l", FullLocationPatternConverter.class.getName());
  +    globalRulesRegistry.put("l", FullLocationPatternConverter.class.getName()); 
       globalRulesRegistry.put("L", LineLocationPatternConverter.class.getName());
       globalRulesRegistry.put("m", MessagePatternConverter.class.getName());
       globalRulesRegistry.put(
         "M", MethodLocationPatternConverter.class.getName());
       globalRulesRegistry.put("p", LevelPatternConverter.class.getName());
  +	  globalRulesRegistry.put("level", FullLocationPatternConverter.class.getName());
  +	       
       globalRulesRegistry.put("r", RelativeTimePatternConverter.class.getName());
       globalRulesRegistry.put("t", ThreadPatternConverter.class.getName());
       globalRulesRegistry.put("x", NDCPatternConverter.class.getName());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message