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

logger conversionPattern restriction doesn't work correctly for Generic classes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.10
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 2000 Professional, .NET Framework 2.0

      Description

      <conversionPattern value="%date %-5level %logger

      {1}

      - %message%newline"/>

      Using the above conversion pattern for a logger of a Generic class (i.e. My.System.MyClass<My.System.MyObject>) will result in the following log output:

      2008-01-17 21:54:48,968 INFO 0, Culture=neutral, PublicKeyToken=null]] - My error message

      Obviously, in this case it's not appropriate to just take the portion of the class name after the last '.' character.

      Thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ron Ron Grabowski
                Reporter:
                tomcrossland Tom Crossland
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: