[logback-dev] svn commit: r1413 - logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/model
noreply.seb at qos.ch
noreply.seb at qos.ch
Wed Mar 7 18:20:32 CET 2007
Author: seb
Date: Wed Mar 7 18:20:32 2007
New Revision: 1413
Modified:
logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/model/LoggingEventManager.java
Log:
More realistic rate of sending events.
This config has been tested with 60'000 messages in the buffer and works fine.
Modified: logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/model/LoggingEventManager.java
==============================================================================
--- logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/model/LoggingEventManager.java (original)
+++ logbackPDE/trunk/plugins/ConsolePlugin/src/main/java/ch/qos/logback/eclipse/model/LoggingEventManager.java Wed Mar 7 18:20:32 2007
@@ -113,6 +113,13 @@
}
private void sendEventsFromIndex(final int index) {
+ /**
+ * TODO Improve this
+ *
+ * This voodoo-like method of sending events without
+ * crashing the console should be replaced by something else.
+ */
+
scheduledExecutorService = Executors.newScheduledThreadPool(2);
Runnable runnnable = new Runnable() {
@@ -130,6 +137,6 @@
};
scheduledExecutorService.scheduleAtFixedRate(runnnable,
- 0, 1, TimeUnit.MICROSECONDS);
+ 0, 500, TimeUnit.MICROSECONDS);
}
}
More information about the logback-dev
mailing list