logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject cvs commit: jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw ChainsawConstants.java LogUI.java
Date Mon, 05 May 2003 00:59:05 GMT
sdeboy      2003/05/04 17:59:05

  Modified:    src/java/org/apache/log4j/chainsaw ChainsawConstants.java
                        LogUI.java
  Log:
  Added support for reception of java.util.logging (JDK1.4) events via their sockethandler
and xmlformatter.
  
  Revision  Changes    Path
  1.3       +0 -5      jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawConstants.java
  
  Index: ChainsawConstants.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawConstants.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ChainsawConstants.java	2 May 2003 04:19:26 -0000	1.2
  +++ ChainsawConstants.java	5 May 2003 00:59:05 -0000	1.3
  @@ -35,11 +35,6 @@
   
     //none is not a real column name, but is used by filters as a way to apply no filter
for colors or display
     static final String NONE_COL_NAME = "None";
  -  static final String DEBUG_LEVEL = "DEBUG";
  -  static final String INFO_LEVEL = "INFO";
  -  static final String WARN_LEVEL = "WARN";
  -  static final String ERROR_LEVEL = "ERROR";
  -  static final String FATAL_LEVEL = "FATAL";
     static final String LOG4J_APP_KEY = "log4japp";
     static final String LOG4J_MACHINE_KEY = "log4jmachinename";
     static final String LOG4J_ID_KEY = "log4jid";
  
  
  
  1.20      +6 -7      jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/LogUI.java
  
  Index: LogUI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/LogUI.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- LogUI.java	3 May 2003 06:53:13 -0000	1.19
  +++ LogUI.java	5 May 2003 00:59:05 -0000	1.20
  @@ -116,7 +116,7 @@
   import javax.swing.table.TableModel;
   
   import org.apache.log4j.LogManager;
  -
  +import org.apache.log4j.UtilLoggingLevel;
   
   /**
    * The main entry point for Chainsaw, this class represents the first frame
  @@ -210,12 +210,11 @@
   
       //NOTE:  ID must ALWAYS be last field because the model adds this value itself as an
identifier to the end of the consructed vector
       names.add(ChainsawConstants.ID_COL_NAME);
  -
  -    levelList.add(ChainsawConstants.DEBUG_LEVEL);
  -    levelList.add(ChainsawConstants.INFO_LEVEL);
  -    levelList.add(ChainsawConstants.WARN_LEVEL);
  -    levelList.add(ChainsawConstants.ERROR_LEVEL);
  -    levelList.add(ChainsawConstants.FATAL_LEVEL);
  +	List levels=UtilLoggingLevel.getAllPossibleLevels();
  +	Iterator iter=levels.iterator();
  +	while (iter.hasNext()) {
  +	    levelList.add(iter.next().toString());
  +	}
   
       filterableColumns.add(ChainsawConstants.LEVEL_COL_NAME);
       filterableColumns.add(ChainsawConstants.LOGGER_COL_NAME);
  
  
  

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