RE: AppenderSkeleton.DoAppender calls lock(this) while some IAppender examples do not

2006-07-16 Thread Nicko Cadell
The AppenderSkeleton uses a lock to ensure that the calls to the subclass' Append method are serialised. This makes the job of writing a custom appender much easier as you don't have to deal with threading. The FastDbAppender does not use a lock to serialise the calls to the Append method, or to

RE: AppenderSkeleton.DoAppender calls lock(this) while some IAppender examples do not

2006-07-16 Thread Ron Grabowski
NullAppender:IAppender is about 20% faster than NullAppender:AppenderSkeleton on my system when calling log.Debug several million times inside a tight loop: public class NullAppender : IAppender { public void Close() { /* empty */ } public void DoAppend(LoggingEvent loggingEvent) { /*