logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: MDC vs properties
Date Tue, 11 May 2004 13:26:06 GMT

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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message