Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1224

JDKLogImpl category for Class is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.10
    • 2.10
    • None
    • Low
    • Workaround Exists
    • Hide

      When specifying the category, the user must append "class " before the class name they would expect.

      Show
      When specifying the category, the user must append "class " before the class name they would expect.

      The JDKLogImpl class initializes the category using Class.toString, but should instead be using getName(). The toString() produces values such as "class org.jgroups.conf.ConfiguratorFactory" when we just want the class name.

      The fix is to replace this:
      public JDKLogImpl(Class category)

      { logger=Logger.getLogger(category.toString()); }

      With this:
      public JDKLogImpl(Class category)

      { logger=Logger.getLogger(category.getName()); }

              rhn-engineering-bban Bela Ban
              reden_jira Robert Eden (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: