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

ArgumentOutOfRangeException in log4net hierarchy on "." logger name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.11
    • 1.2.12
    • Core
    • None
    • Windows 32 bit, .NET 3.5 SP 1

    Description

      While configuring a logger with name ".", however wrong it may be, I stampled on uncaught exception.
      "Index was out of range. Must be non-negative and less than the size of the collection.
      Parameter name: startIndex"
      The problem code is at the first executable code line of UpdateParents(Logger log) method
      of log4net.Repository.Hierarchy.Hierarchy class.

      I am sure there is an easy fix.

      Attachments

        1. LOG4NET-343.patch
          3 kB
          Dominik Psenner

        Activity

          People

            bodewig Stefan Bodewig
            dmitri Dmitri Plotnikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: