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

logger conversionPattern restriction doesn't work correctly for Generic classes

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.10
    • None
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ron liu ron
            tomcrossland Tom Crossland

            Dates

              Created:
              Updated:

              Slack

                Issue deployment