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

Exception during StringFormat: Input string was not in a correct format.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.2.10
    • None
    • None
    • None

    Description

      We are encountering following error when we use following debugger statement in code. This request is a JSON request which is a valid format in JSON but still log4net 1.2.10.0 logs this message.

      <<<Code>>>
      Logger.Debugger("request=" + request);

      <<<Error Message in Logger >>>
      <log4net.Error>Exception during StringFormat: Input string was not in a correct format. <format>request={
      "ID": "xxxx-xxxxx-xxxx-xxxx-xxxx",
      "zipFile": "Test.docx__04052012105400.authoring.gz",
      "actualFile": "Test02052012222046.docx",
      "UserID": "bhatt",
      "groupID": "GroupA",
      "groupFromUI": "GroupA"
      }</format><args>{}</args></log4net.Error>

      Attachments

        Activity

          People

            nachbarslumpi Dominik Psenner
            deepak_bhatt Deepak Kumar Bhatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: