logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/chainsaw ChainsawAppenderHandler.java
Date Sat, 05 Jun 2004 07:52:04 GMT
sdeboy      2004/06/05 00:52:04

  Modified:    src/java/org/apache/log4j/chainsaw/help release-notes.html
               src/java/org/apache/log4j/chainsaw
                        ChainsawAppenderHandler.java
  Log:
  Modified responsiveness logic used to throttle event processing.  FASTEST setting now performs
a yield instead of a wait.
  
  Revision  Changes    Path
  1.18      +4 -0      logging-log4j/src/java/org/apache/log4j/chainsaw/help/release-notes.html
  
  Index: release-notes.html
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/help/release-notes.html,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- release-notes.html	28 May 2004 07:19:16 -0000	1.17
  +++ release-notes.html	5 Jun 2004 07:52:04 -0000	1.18
  @@ -7,6 +7,10 @@
   <BODY>
   <h2>Release Notes</h2>
   
  +<h2>1.99.99 (6th June 2004 08:00 GMT+10)</h2>
  +<ul>
  + <li>Modified responsiveness logic used to throttle event processing.  FASTEST setting
now performs a yield instead of a wait.</li>
  +</ul>
   <h2>1.99.99 (28th May 2004 08:00 GMT+10)</h2>
   <ul>
    <li>Updated LogFilePatternReceiver to correctly process events without exceptions.</li>
  
  
  
  1.22      +9 -13     logging-log4j/src/java/org/apache/log4j/chainsaw/ChainsawAppenderHandler.java
  
  Index: ChainsawAppenderHandler.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/ChainsawAppenderHandler.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ChainsawAppenderHandler.java	22 May 2004 01:17:01 -0000	1.21
  +++ ChainsawAppenderHandler.java	5 Jun 2004 07:52:04 -0000	1.22
  @@ -23,7 +23,6 @@
   import java.util.Iterator;
   import java.util.List;
   import java.util.Map;
  -import java.util.Vector;
   
   import javax.swing.event.EventListenerList;
   
  @@ -280,13 +279,6 @@
   
               while (iter.hasNext()) {
                 LoggingEvent e = (LoggingEvent) iter.next();
  -              Vector properties = new Vector();
  -              Iterator iterx = e.getPropertyKeySet().iterator();
  -
  -              while (iterx.hasNext()) {
  -                String thisProp = iterx.next().toString();
  -                properties.add(thisProp + " " + e.getProperty(thisProp));
  -              }
   
                 for (
                   Iterator itery = customExpressionRules.entrySet().iterator();
  @@ -315,11 +307,15 @@
               innerList.clear();
             }
   
  -          try {
  -            synchronized (this) {
  -              wait(getQueueInterval());
  -            }
  -          } catch (InterruptedException ie) {
  +          if (getQueueInterval() > 1000) {
  +	          try {
  +	            synchronized (this) {
  +	              wait(getQueueInterval());
  +	            }
  +	          } catch (InterruptedException ie) {
  +	          }
  +          } else {
  +          	Thread.yield();
             }
   
             if (size == 0) {
  
  
  

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