It's rather simple really. Previously, the user would set properties using the MDC.put and would retrieve those properties using MDC.get. As of 1.3, you have the option of setting properties at the LoggerRepository level. When a logging event is sent to an outside system, through serialization, in XML or in some other format, the MDC and LoggerRepository properties are coalesced into a single properties object contained within the event. Thus, when you read a serialized event, there is no longer a need to worry about where the event was set (MDC or LoggerRepository). Internally, log4j views MDC or LoggerRepository properties, just as properties.
Think about it as log4j's way of internally unifying properties originating at different sources.
Does this help?
At 02:47 PM 5/11/2004, James Stauffer wrote:
It appears there has been some change from MDC to properties. Where can I find info on that?
James Stauffer
-- Ceki G�lc�
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
