I've checked the code and think this is an error at line 400 in
BufferingAppenderSkeleton.cs:

if (discardedLoggingEvent != null && m_lossyEvaluator != null &&
m_lossyEvaluator.IsTriggeringEvent(discardedLoggingEvent))

If you don't give a lossy evaluator the event is discarded, regardless of
whether the buffer is lossy or not.  This line should also check if the buffer
is lossy, and send the discarded event if it isn't:

if (discardedLoggingEvent != null && (!m_lossy || (m_lossyEvaluator != null &&
m_lossyEvaluator.IsTriggeringEvent(discardedLoggingEvent))))

Should I raise this as a bug?

Cheers,
Richard.

--- Richard Gee <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm using the config example for the AdoNetAppender and it's losing the first
> log entry.
> 
> It's a very simple test - I log a count from 1 to 130 when I press a button. 
> Everything works fine, including the buffering of 100 records etc, except
> that
> it drops the first entry logged.
> 
> Adding a FileAppender confirms the missing entry is being logged - it appears
> in the file no problem.
> 
> log4net v1.2.9
> VB.Net 2003
> .Net 1.1.4322 SP1
> SQL Server 2000
> Windows XP Pro
> 
> Cheers,
> Richard.
> 

Reply via email to