> -----Original Message----- > From: Stefan Bodewig [mailto:[EMAIL PROTECTED] > Sent: 28 January 2006 10:34 > To: [email protected] > 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. Cheers, Nicko
