logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicko Cadell" <ni...@neoworks.com>
Subject RE: Repeat ignores messages
Date Mon, 27 Mar 2006 22:37:26 GMT

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org] 
> Sent: 28 January 2006 10:34
> To: log4net-user@logging.apache.org
> Subject: Re: Repeat ignores messages
> I've once done something similar for an in-house (Java) 
> logging framework in a past job.  The way I implemented it 
> would translate into an appender that was a decorator around 
> another appender which just keeps track of the last message 
> it logged, the memory overhead is minimal.  In addition I had 
> a thread that made sure log statements were not delayed, so 
> if the last AB log never happened a trigger would cause the 
> "last message repeated two times" after some time.
> Stefan

Log4net appenders can be nested. It should be straightforward to write
an appender that does the same as your java version. The
ForwardingAppender would be the best appender to subclass.


View raw message