logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: jakarta-log4j/src/java/org/apache/log4j/chainsaw ControlPanel.java
Date Mon, 05 May 2003 21:02:22 GMT
ceki        2003/05/05 14:02:22

  Modified:    src/java/org/apache/log4j/chainsaw ControlPanel.java
  Log:
  Removed dependency on the deprecated Priority.getAllPossiblePriorities method
  
  Revision  Changes    Path
  1.10      +3 -1      jakarta-log4j/src/java/org/apache/log4j/chainsaw/ControlPanel.java
  
  Index: ControlPanel.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/ControlPanel.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ControlPanel.java	20 Mar 2003 05:42:46 -0000	1.9
  +++ ControlPanel.java	5 May 2003 21:02:22 -0000	1.10
  @@ -50,6 +50,7 @@
   package org.apache.log4j.chainsaw;
   
   import org.apache.log4j.Category;
  +import org.apache.log4j.Level;
   import org.apache.log4j.Priority;
   
   import java.awt.Dimension;
  @@ -197,7 +198,8 @@
   
       c.gridy = 0;
   
  -    final Priority[] allPriorities = Priority.getAllPossiblePriorities();
  +    final Priority[] allPriorities =
  +      new Level[] { Level.FATAL, Level.ERROR, Level.WARN, Level.INFO, Level.DEBUG };
       final JComboBox priorities = new JComboBox(allPriorities);
       gridbag.setConstraints(priorities, c);
       add(priorities);
  
  
  

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


Mime
View raw message