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

Log4Net missing messages

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.8
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      None

      Description

      I am using log4net 2.0.8 from a C# service. This service has a method that writes out a status message of application domains that it has loaded on a timer (normally every three minutes, but set to 30 seconds for testing). What I have found is that some of our status messages are missing. It appeared to me from the message, that the code is working, but no message is being generated.

      So, I added a Debug.WriteLine before every Log.Fatal (set to Fatal for testing) and ran the code.

      As you can see from the attached log4net.txt, the code logged successfully and then failed.

      The output should have the following messages.

      tmrLogData_Elapsed

      LogData, Enter

      LogData, appDomainUtilsLoggingList.Count

      LogData, 1

      LogData, 2

      LogData, 3

      LogData, 4

      LogData, sb.Count

      LogData - start, logDataCounter

      LogData, 5

      LogData, Exit

       You see the run that failed on lines 302786 - 302810.  It has the Debug.WriteLine calls, but only some of the Log.Fatal calls logged anything.

      We are very concerned that log4net may be missing other critical messages.

      Please feel free to reach out to me if you need further information.

       

       

       

        Attachments

        1. log4net.zip
          487 kB
          Juan Gonzalez
        2. log4net.config
          4 kB
          Juan Gonzalez

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              CXTjuan Juan Gonzalez
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: