[logback-dev] [JIRA] Updates for LOGBACK-1528: Allow to change ExecutorServiceFactory

QOS.CH (JIRA) noreply-jira at qos.ch
Mon Oct 5 01:25:00 CEST 2020


logback / LOGBACK-1528 [Open]
Allow to change ExecutorServiceFactory

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1528

==============================
 Issue created
------------------------------

Gael Lalire created this issue on 05/Oct/20 1:10 AM
Summary:              Allow to change ExecutorServiceFactory
Issue Type:           Improvement
Affects Versions:     1.2.3
Assignee:             Logback dev list
Components:           logback-core
Created:              05/Oct/20 1:10 AM
Priority:             Major
Reporter:             Gael Lalire
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|https://github.com/qos-ch/logback/pull/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.


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the logback-dev mailing list