You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ce...@apache.org on 2004/04/20 12:02:31 UTC

cvs commit: logging-log4j/src/java/org/apache/log4j PropertyConfigurator.java

ceki        2004/04/20 03:02:31

  Modified:    docs     HISTORY
               src/java/org/apache/log4j/helpers LogLog.java
               src/java/org/apache/log4j PropertyConfigurator.java
  Log:
   - Removed support for the deprecated property "log4j.configDebug". [**/D]
  
  Revision  Changes    Path
  1.104     +6 -3      logging-log4j/docs/HISTORY
  
  Index: HISTORY
  ===================================================================
  RCS file: /home/cvs/logging-log4j/docs/HISTORY,v
  retrieving revision 1.103
  retrieving revision 1.104
  diff -u -r1.103 -r1.104
  --- HISTORY	19 Sep 2003 19:54:12 -0000	1.103
  +++ HISTORY	20 Apr 2004 10:02:31 -0000	1.104
  @@ -4,11 +4,14 @@
     [**] Changes that requiring little or no modification to existing
          client code. 
    [***] Changes requiring important modifications to existing client code.
  +   
  +   [D] Changes affect a method or property which was previously marked as 
  +       deprecated.
  +   
   
  + April, 2004 
   
  - Semptember ?th, 2003 
  -
  - - Release of version 1.3alpha0
  + - Removed support for the deprecated property "log4j.configDebug". [**/D]
   
    - Added keys() method to the MDC class as requested by Don Isenor.
    
  
  
  
  1.11      +0 -15     logging-log4j/src/java/org/apache/log4j/helpers/LogLog.java
  
  Index: LogLog.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/helpers/LogLog.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- LogLog.java	27 Feb 2004 16:47:31 -0000	1.10
  +++ LogLog.java	20 Apr 2004 10:02:31 -0000	1.11
  @@ -43,17 +43,6 @@
       <p>Note that the search for all option names is case sensitive.  */
     public static final String DEBUG_KEY = "log4j.debug";
   
  -  /**
  -     Defining this value makes log4j components print log4j-internal
  -     debug statements to <code>System.out</code>.
  -
  -    <p> The value of this string is <b>log4j.configDebug</b>.
  -
  -    <p>Note that the search for all option names is case sensitive.
  -
  -    @deprecated Use {@link #DEBUG_KEY} instead.
  -  */
  -  public static final String CONFIG_DEBUG_KEY = "log4j.configDebug";
     protected static boolean debugEnabled = false;
   
     /**
  @@ -67,10 +56,6 @@
   
     static {
       String key = OptionConverter.getSystemProperty(DEBUG_KEY, null);
  -
  -    if (key == null) {
  -      key = OptionConverter.getSystemProperty(CONFIG_DEBUG_KEY, null);
  -    }
   
       if (key != null) {
         debugEnabled = OptionConverter.toBoolean(key, true);
  
  
  
  1.64      +0 -9      logging-log4j/src/java/org/apache/log4j/PropertyConfigurator.java
  
  Index: PropertyConfigurator.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/PropertyConfigurator.java,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- PropertyConfigurator.java	27 Feb 2004 16:47:28 -0000	1.63
  +++ PropertyConfigurator.java	20 Apr 2004 10:02:31 -0000	1.64
  @@ -383,15 +383,6 @@
     public void doConfigure(Properties properties, LoggerRepository hierarchy) {
       String value = properties.getProperty(LogLog.DEBUG_KEY);
   
  -    if (value == null) {
  -      value = properties.getProperty(LogLog.CONFIG_DEBUG_KEY);
  -
  -      if (value != null) {
  -        LogLog.warn(
  -          "[log4j.configDebug] is deprecated. Use [log4j.debug] instead.");
  -      }
  -    }
  -
       if (value != null) {
         LogLog.setInternalDebugging(OptionConverter.toBoolean(value, true));
       }
  
  
  

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