Issue Details (XML | Word | Printable)

Key: LOG4NET-32
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Nicko Cadell
Reporter: Richard Gee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4net

AdoNetAppender losing first entry

Created: 03/Jun/05 05:32 PM   Updated: 09/Jun/05 02:15 AM
Return to search
Component/s: Appenders
Affects Version/s: 1.2.9
Fix Version/s: 1.2.10

Time Tracking:
Not Specified

Environment:
VB.Net 2003, .Net 1.1.4322 SP1, SQL Server 2000, Windows XP Pro

Resolution Date: 09/Jun/05 02:15 AM


 Description  « Hide
AdoNetAppender is losing the first log entry, caused by the entry being discarded as the underlying buffer cycles for the first time.

Probable 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))))

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.