logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r443096 - /logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/chainsaw/ControlPanel.java
Date Wed, 13 Sep 2006 19:47:05 GMT
Author: carnold
Date: Wed Sep 13 12:47:05 2006
New Revision: 443096

URL: http://svn.apache.org/viewvc?view=rev&rev=443096
Log:
Bug 40378: Chainsaw of log4j 1.2 does not show TRACE level

Modified:
    logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/chainsaw/ControlPanel.java

Modified: logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/chainsaw/ControlPanel.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/chainsaw/ControlPanel.java?view=diff&rev=443096&r1=443095&r2=443096
==============================================================================
--- logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/chainsaw/ControlPanel.java
(original)
+++ logging/log4j/branches/v1_2-branch/src/java/org/apache/log4j/chainsaw/ControlPanel.java
Wed Sep 13 12:47:05 2006
@@ -29,6 +29,7 @@
 import javax.swing.event.DocumentListener;
 import org.apache.log4j.Logger;
 import org.apache.log4j.Priority;
+import org.apache.log4j.Level;
 
 /**
  * Represents the controls for filtering, pausing, exiting, etc.
@@ -91,9 +92,15 @@
         c.anchor = GridBagConstraints.WEST;
 
         c.gridy = 0;
-        final Priority[] allPriorities = Priority.getAllPossiblePriorities();
+        final Level[] allPriorities = new Level[] {Level.FATAL, 
+               Level.ERROR, 
+               Level.WARN, 
+			   Level.INFO, 
+			   Level.DEBUG, 
+			   Level.TRACE };
+        
         final JComboBox priorities = new JComboBox(allPriorities);
-        final Priority lowest = allPriorities[allPriorities.length - 1];
+        final Level lowest = allPriorities[allPriorities.length - 1];
         priorities.setSelectedItem(lowest);
         aModel.setPriorityFilter(lowest);
         gridbag.setConstraints(priorities, c);



---------------------------------------------------------------------
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