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

ArgumentOutOfRangeException in log4net hierarchy on "." logger name

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.11
    • Fix Version/s: 1.2.12
    • Component/s: Core
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              bodewig Stefan Bodewig
              Reporter:
              dmitri Dmitri Tchikine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: