You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by am...@apache.org on 2002/01/25 21:12:20 UTC

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger LoggerBase.java

amyroh      02/01/25 12:12:20

  Modified:    catalina/src/share/org/apache/catalina/logger
                        LoggerBase.java
  Log:
  Add "debug" property so it's accessible from its MBeans.
  
  Revision  Changes    Path
  1.5       +32 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger/LoggerBase.java
  
  Index: LoggerBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger/LoggerBase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LoggerBase.java	6 Nov 2001 23:50:10 -0000	1.4
  +++ LoggerBase.java	25 Jan 2002 20:12:20 -0000	1.5
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger/LoggerBase.java,v 1.4 2001/11/06 23:50:10 amyroh Exp $
  - * $Revision: 1.4 $
  - * $Date: 2001/11/06 23:50:10 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/logger/LoggerBase.java,v 1.5 2002/01/25 20:12:20 amyroh Exp $
  + * $Revision: 1.5 $
  + * $Date: 2002/01/25 20:12:20 $
    *
    * ====================================================================
    *
  @@ -81,7 +81,7 @@
    * any property setting and lifecycle methods required for configuration.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.4 $ $Date: 2001/11/06 23:50:10 $
  + * @version $Revision: 1.5 $ $Date: 2002/01/25 20:12:20 $
    */
   
   public abstract class LoggerBase
  @@ -98,6 +98,12 @@
   
   
       /**
  +     * The debugging detail level for this component.
  +     */
  +    protected int debug = 0;
  +
  +    
  +    /**
        * The descriptive information about this implementation.
        */
       protected static final String info =
  @@ -139,6 +145,28 @@
           Container oldContainer = this.container;
           this.container = container;
           support.firePropertyChange("container", oldContainer, this.container);
  +
  +    }
  +
  +
  +    /**
  +     * Return the debugging detail level for this component.
  +     */
  +    public int getDebug() {
  +
  +        return (this.debug);
  +
  +    }
  +
  +
  +    /**
  +     * Set the debugging detail level for this component.
  +     *
  +     * @param debug The new debugging detail level
  +     */
  +    public void setDebug(int debug) {
  +
  +        this.debug = debug;
   
       }
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>