logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/xml/test DOMTest.java
Date Fri, 29 Oct 2004 16:33:24 GMT
ceki        2004/10/29 09:33:24

  Modified:    src/java/org/apache/log4j/jmx Tag: v1_2-branch
                        HierarchyDynamicMBean.java LoggerDynamicMBean.java
               src/java/org/apache/log4j/xml/test Tag: v1_2-branch
                        DOMTest.java
  Log:
  NOTE: 1.2.x BRANCH
  
  More cleaning up, less deprecation warnings.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.2.1   +1 -1      logging-log4j/src/java/org/apache/log4j/jmx/HierarchyDynamicMBean.java
  
  Index: HierarchyDynamicMBean.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/jmx/HierarchyDynamicMBean.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- HierarchyDynamicMBean.java	24 Apr 2002 01:16:13 -0000	1.5
  +++ HierarchyDynamicMBean.java	29 Oct 2004 16:33:24 -0000	1.5.2.1
  @@ -93,7 +93,7 @@
   
     public
     ObjectName addLoggerMBean(String name) {
  -    Logger cat = Logger.exists(name);
  +    Logger cat = LogManager.exists(name);
   
       if(cat != null) {
         return addLoggerMBean(cat);
  
  
  
  1.2.2.2   +1 -1      logging-log4j/src/java/org/apache/log4j/jmx/LoggerDynamicMBean.java
  
  Index: LoggerDynamicMBean.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/jmx/LoggerDynamicMBean.java,v
  retrieving revision 1.2.2.1
  retrieving revision 1.2.2.2
  diff -u -r1.2.2.1 -r1.2.2.2
  --- LoggerDynamicMBean.java	29 Oct 2004 15:43:00 -0000	1.2.2.1
  +++ LoggerDynamicMBean.java	29 Oct 2004 16:33:24 -0000	1.2.2.2
  @@ -218,7 +218,7 @@
   	} else {
   	  p = OptionConverter.toLevel(s, p);
   	}
  -	logger.setPriority(p);
  +	logger.setLevel(p);
         }
       } else {
         throw(new AttributeNotFoundException("Attribute " + name +
  
  
  
  No                   revision
  No                   revision
  1.5.2.1   +2 -1      logging-log4j/src/java/org/apache/log4j/xml/test/DOMTest.java
  
  Index: DOMTest.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/xml/test/DOMTest.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- DOMTest.java	27 Jun 2001 21:34:41 -0000	1.5
  +++ DOMTest.java	29 Oct 2004 16:33:24 -0000	1.5.2.1
  @@ -9,6 +9,7 @@
   
   import org.apache.log4j.xml.DOMConfigurator;
   import org.apache.log4j.Category;
  +import org.apache.log4j.LogManager;
   import org.apache.log4j.Priority;
   //import org.apache.log4j.xml.examples.ReportParserError;
   //import org.apache.xerces.parsers.DOMParser;
  @@ -74,6 +75,6 @@
       cat.error("Message " + ++i, e);
       root.error("Message " + i, e);    
   
  -    Category.shutdown();
  +    LogManager.shutdown();
     }
   }
  
  
  

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


Mime
View raw message