logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy Chastain" <...@roychastain.org>
Subject RE: Possible new code - DynamicPatternLayout
Date Mon, 12 Sep 2011 15:56:42 GMT
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:bodewig@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).


View raw message