commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester Digester.java
Date Thu, 17 Jan 2002 01:51:21 GMT
craigmcc    02/01/16 17:51:21

  Modified:    digester/src/java/org/apache/commons/digester Digester.java
  Log:
  Update to reflect the refinements in the commons-logging api.
  
  Revision  Changes    Path
  1.41      +10 -17    jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java
  
  Index: Digester.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- Digester.java	15 Jan 2002 02:37:17 -0000	1.40
  +++ Digester.java	17 Jan 2002 01:51:21 -0000	1.41
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
1.40 2002/01/15 02:37:17 sanders Exp $
  - * $Revision: 1.40 $
  - * $Date: 2002/01/15 02:37:17 $
  + * $Header: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
1.41 2002/01/17 01:51:21 craigmcc Exp $
  + * $Revision: 1.41 $
  + * $Date: 2002/01/17 01:51:21 $
    *
    * ====================================================================
    *
  @@ -112,7 +112,7 @@
    *
    * @author Craig McClanahan
    * @author Scott Sanders
  - * @version $Revision: 1.40 $ $Date: 2002/01/15 02:37:17 $
  + * @version $Revision: 1.41 $ $Date: 2002/01/17 01:51:21 $
    */
   
   public class Digester extends DefaultHandler {
  @@ -403,11 +403,12 @@
       /**
        * Return the debugging detail level of our currently enabled logger.
        *
  -     * @deprecated Call getLogger() and use it's getLevel() method
  +     * @deprecated Configure the logger using standard mechanisms
  +     *  for your implementation
        */
       public int getDebug() {
   
  -        return (log.getLevel());
  +        return (0);
   
       }
   
  @@ -418,20 +419,12 @@
        * @param debug New debugging detail level (0=off, increasing integers
        *  for more detail)
        *
  -     * @deprecated Call getLogger() and use its setLevel() method
  +     * @deprecated Configure the logger using standard mechanisms
  +     *  for your immplementation
        */
       public void setDebug(int debug) {
   
  -        // Compute an appropriate level value
  -        int level = Log.INFO;
  -        if (debug >= 1) {
  -            level = Log.DEBUG;
  -        } else if (debug == 0) {
  -            level = Log.ERROR;
  -        }
  -
  -        // Tell our Log to use the new level
  -        log.setLevel(level);
  +        ; // No action is taken
   
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message