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

Allow to change ExecutorServiceFactory

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.3
    • logback-core
    • None

    Description

      I'm using logback in a classloader which should gets garbage collected.

      While logback.xml does not have a scanPeriod it is working fine.

      However with a scanPeriod logback will create a ScheduledExecutorService which prevent the classloader to be garbage collected.

      To work around that I created a weak scheduler service but in order to set it in logback core I need an extension point. Also please note that logback cannot clean its own thread on its own code, the cleanup code have to be in another classloader to allow the garbage collection.

      I created the extension point in #496, I need a 1.2.4 release which still work with java 6.

      If you don't want to work again on 1.2.x, I still can release it myself in my repository.

      It may also have a sense in java9 versions, although I will not use them.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            gaellalire Gael Lalire
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: