You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Dominik Psenner (JIRA)" <ji...@apache.org> on 2017/10/31 21:10:00 UTC

[jira] [Resolved] (LOG4NET-580) ArgumentOutOfRangeException - When logger name begins with character '.'

     [ https://issues.apache.org/jira/browse/LOG4NET-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominik Psenner resolved LOG4NET-580.
-------------------------------------
    Resolution: Implemented
      Assignee: Dominik Psenner

Resolving issue because it has already been fixed in a released version but keeping the improved test cases and merged them into develop.

> ArgumentOutOfRangeException - When logger name begins with character '.'
> ------------------------------------------------------------------------
>
>                 Key: LOG4NET-580
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-580
>             Project: Log4net
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.15, 2.0.6, 2.0.7, 2.0.8
>            Reporter: Timothy Fuller
>            Assignee: Dominik Psenner
>
> When you try to get a logger and supply a name which begins with the '.' character for example ".Test" the code crashes in :     at log4net.Repository.Hierarchy.Hierarchy.UpdateParents(Logger log)
> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
> Parameter name: startIndex
>    at System.String.LastIndexOf(Char value, Int32 startIndex, Int32 count)
>    at log4net.Repository.Hierarchy.Hierarchy.UpdateParents(Logger log)
>    at log4net.Repository.Hierarchy.Hierarchy.GetLogger(String name, ILoggerFactory factory)
>    at log4net.Repository.Hierarchy.Hierarchy.GetLogger(String name)
>    at log4net.Core.LoggerManager.GetLogger(String repository, String name)
>    at log4net.LogManager.GetLogger(String repository, String name)
>  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)