Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-407

Use WeakHashMap instead of Hashtable in LoggerContext

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • 0.9.18
    • logback-classic
    • None

    Description

      Preventing garbage-collection of unused Loggers is a bad idea.

      The following code should not fail:

      for(int i=0;i<10000000;i++) {
      LoggerFactory.getLogger("Foo."+i).debug("Foo!");
      }

      Attachments

        Activity

          People

            logback-dev Logback dev list
            jhuxhorn Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: