ceki 2003/08/22 10:52:21
Modified: src/java/org/apache/log4j MDC.java
docs HISTORY
Log:
- Added keys() method to the MDC class as requested by Don Isenor.
- Updated HISTORY to show progress towards release 1.3alpha
Revision Changes Path
1.15 +17 -0 jakarta-log4j/src/java/org/apache/log4j/MDC.java
Index: MDC.java
===================================================================
RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/MDC.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- MDC.java 18 Mar 2003 21:24:02 -0000 1.14
+++ MDC.java 22 Aug 2003 17:52:21 -0000 1.15
@@ -51,6 +51,7 @@
import org.apache.log4j.helpers.ThreadLocalMap;
+import java.util.Enumeration;
import java.util.Hashtable;
@@ -143,5 +144,21 @@
* */
public static Hashtable getContext() {
return (Hashtable) tlm.get();
+ }
+
+ /**
+ * Returns the keys in the MDC as an [EMAIL PROTECTED] Enumeration}. The returned
value can be
+ * null.
+ *
+ * @since version 1.3
+ */
+ public static Enumeration getKeys() {
+ Hashtable ht = (Hashtable) tlm.get();
+
+ if (ht != null) {
+ return ht.keys();
+ } else {
+ return null;
+ }
}
}
1.101 +28 -0 jakarta-log4j/docs/HISTORY
Index: HISTORY
===================================================================
RCS file: /home/cvs/jakarta-log4j/docs/HISTORY,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -r1.100 -r1.101
--- HISTORY 3 Mar 2003 15:28:00 -0000 1.100
+++ HISTORY 22 Aug 2003 17:52:21 -0000 1.101
@@ -5,6 +5,34 @@
client code.
[***] Changes requiring important modifications to existing client code.
+
+ Semptember ?th, 2003
+
+ - Release of version 1.3alpha0
+
+ - Added keys() method to the MDC class as requested by Don Isenor.
+
+ - Certain operations on Loggers are now made using ReaderWriterLocks which
+ allows simultaneous read operations but only one write operation. This should
+ significantly improve logging throughput in heavily loaded server environments.
+
+ - LIST OF CHAINSAW IMPROVEMENTS.
+
+ - Rolling can now be triggered based on time or size as was already the case in
+ log4j 1.2. However, the new architecture allows for much more variation in the
+ timing of the rollover and the actions taken during rollover (i.e on the fly
+ compression, renaming, moving). The new architecture was suggested a long time
+ ago by James P. Cakalic. A similar design can be found in the Avalon Logkit.
+
+ - LoggingEvent was extended to allow properties. Properties are meant to be set
+ by Layout and Appender classes as they output/process logging events.
+ Properties are per logging event where MDC values are per thread.
+
+ - Another LoggingEvent constructor was added to allow instances to be
reconstituted
+ when received from remote sources that do not use LoggingEvent as the transport
+ type (like XML for example).
+
+
February 19th, 2003
- Release of version 1.2.8
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]