logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Santry (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4NET-69) Exception thrown when *Format methods are given a malformed format string
Date Fri, 23 Sep 2011 13:31:26 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13113428#comment-13113428

Colin Santry commented on LOG4NET-69:

Sorry Stefan,

I've just sorted it, just came on to write comment to ignore entry... but you beat me to it!

Sorry again for wasting your time... was indeed an error...


> Exception thrown when *Format methods are given a malformed format string
> -------------------------------------------------------------------------
>                 Key: LOG4NET-69
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-69
>             Project: Log4net
>          Issue Type: Bug
>    Affects Versions: 1.2.9
>            Reporter: Ron Grabowski
>            Assignee: Nicko Cadell
>            Priority: Critical
>             Fix For: 1.2.10
> FormatException thrown when *Format methods are given a malformed format string: log.DebugFormat("Malformed
> This statement:
>  log.DebugFormat("Malformed {{,,,5}format{8}!");
> throws the following exception:
> [FormatException: Input string was not in a correct format.]
>    System.Text.StringBuilder.FormatError()
>    System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[]
>    System.String.Format(IFormatProvider provider, String format, Object[] args)
>    log4net.Core.LogImpl.DebugFormat(String format, Object[] args)
> which is consistent with the documentation for String.Format:
> System.FormatException: The format item in format is invalid.  -or- The number indicating
an argument to format is less than zero, or greater than or equal to the number of specified
objects to format.  

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message