ceki        02/04/04 11:22:20

  Modified:    docs     HISTORY
               src/java/org/apache/log4j/xml DOMConfigurator.java
  Log:
  - The DOMConfigurator now interprets the string after the '#'
     character in the value attribute within the <level> element as
     the fully qualified class name of a custom Level. This is consistent
     with the way log4j handles "level" values in other places. The
     class attribute is still honored. [*]
  
  Revision  Changes    Path
  1.89      +7 -1      jakarta-log4j/docs/HISTORY
  
  Index: HISTORY
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/docs/HISTORY,v
  retrieving revision 1.88
  retrieving revision 1.89
  diff -u -r1.88 -r1.89
  --- HISTORY   4 Apr 2002 14:46:02 -0000       1.88
  +++ HISTORY   4 Apr 2002 19:22:19 -0000       1.89
  @@ -11,6 +11,12 @@
   
    (rc1)
   
  + - The DOMConfigurator now interprets the string after the '#'
  +   character in the value attribute within the <level> element as
  +   the fully qualified class name of a custom Level. This is consistent
  +   with the way log4j handles "level" values in other places. The
  +   class attribute is still honored. [*]
  +
    - Added Oliver Burn's chainsaw tool to the core log4j
      distribution. Visualisation and dynamic filtering of log events is
      bound to be a very important area of activity in the future. [*]
  @@ -59,7 +65,7 @@
    (beta2)
   
    - Source code written for log4j 1.1.3.jar will compile fine with
  -   log4j 1.2X. However, code compiled for log4j 1.1.3 would
  +   log4j 1.2X. However, code compiled for log4j 1.1.3 would previously
      systematically throw "java.lang.NoSuchMethodError" runtime exceptions
      when run with log4j 1.2 - prior to beta2. This problem has been
      corrected in beta2. Pheew, that was a close one. [*]
  
  
  
  1.49      +2 -3      jakarta-log4j/src/java/org/apache/log4j/xml/DOMConfigurator.java
  
  Index: DOMConfigurator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-log4j/src/java/org/apache/log4j/xml/DOMConfigurator.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- DOMConfigurator.java      22 Feb 2002 18:36:28 -0000      1.48
  +++ DOMConfigurator.java      4 Apr 2002 19:22:19 -0000       1.49
  @@ -501,9 +501,8 @@
         }
       } else {
         String className = subst(element.getAttribute(CLASS_ATTR));      
  -      if(EMPTY_STR.equals(className)) {      
  -     
  -     logger.setLevel(Level.toLevel(priStr));
  +      if(EMPTY_STR.equals(className)) {      
  +     logger.setLevel(OptionConverter.toLevel(priStr, Level.DEBUG));
         } else {
        LogLog.debug("Desired Level sub-class: ["+className+']');
        try {    
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to