You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Post, Richard (HQP)" <Ri...@rhi.com> on 2001/06/18 21:40:35 UTC
mdc class
The current NDC class doesn't really use the stack in the traditional sense
since every 'push' simply concatenates the new string to the end of the
existing string.
Couldn't the same thing be accomplished by foregoing the stack altogether
and just concatenating the new string to the existing string?
A 'pop' would remove the last string from the concatenated list. It might be
necessary to use a second string that contained a concatenated list of the
length of the strings.
Thus the actual string might be 'first string second string third string'
and the second string would be '12 13 12'. The lengths would be used to
determine where the substring is that is being removed (since strings can
have embedded spaces). The second string could also be given as '12 25 37'
to make it easier to remove the last element.
Rick
-----Original Message-----
From: Ceki Gülcü [mailto:cgu@qos.ch]
Sent: Monday, June 18, 2001 12:14 PM
To: LOG4J Developers Mailing List
Subject: Re: Plan for release 1.2
Mathias,
This is a classical backward compatibility technique. If you can't ensure
backward compatibility, then leave the old class alone and create a new one.
Those who want NDC can still use it in JDK 1.1. Those who decide to use MDC
need JDK 1.2+. Does that make sense? Ceki
At 20:32 18.06.2001 +0200, you wrote:
>Why use a new class MDC? NDC = Nested Diag... but can also be Named Diag...
>(which I like better than Mapped).
>We could create a second put method (String, String or Object, Object) for
>the NDC class that implements the same functionality. Only the theadlocal
>would be a problem.....no?
>
>Mathias
>
>
>----- Original Message -----
>From: "Ceki Gülcü" <cg...@qos.ch>
>To: <lo...@jakarta.apache.org>
>Sent: Monday, June 18, 2001 3:33 PM
>Subject: Plan for release 1.2
>
>
>>
>> Hello all,
>>
>> I have written a short release plan for log4j 1.2. It is available at
>>
>> http://jakarta.apache.org/log4j/docs/plan.html
>>
>> You are most welcome to make suggestions and even more to volunteer. :-)
>>
>> Cheers, Ceki
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
--
Ceki Gülcü
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org