No price.  Only the header and footer as surfaced in the new class, so
the other properties resort back to their normal processing.  In
reality, the ConversionPattern for the log output is already dynamic,
but header and footer were not treated the same.

Ron G. actually gave me the idea of how to do this.

Do I run a "diff" against an empty file to produce the patch or is there
another method?

----------------------------------------------------------------------
Roy Chastain




-----Original Message-----
From: Stefan Bodewig [mailto:bode...@apache.org] 
Sent: Monday, September 12, 2011 11:48
To: log4net-dev@logging.apache.org
Subject: Re: Possible new code - DynamicPatternLayout

On 2011-09-12, Roy Chastain wrote:

> I have a new class that I implemented several years ago.  It provides 
> a DynamicPatternConverter.  Its primary purpose is to provide dynamic 
> headers and footers in logs.

Aren't you paying a big price for this by also making the "normal"
pattern dynamic?  Maybe there is room for something in between where
only Header and Footer are dynamic?

> I do not have test cases.

But could add some ;-)

> This code is available for inclusion in log4Net if anyone feels that 
> it is worth including.

I think it is (post 1.2.11).

Stefan

Reply via email to