Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-32

AdoNetAppender losing first entry

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.9
    • 1.2.10
    • Appenders
    • None
    • VB.Net 2003, .Net 1.1.4322 SP1, SQL Server 2000, Windows XP Pro

    Description

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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nicko Nicko Cadell
            richardcgee Richard Gee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment