[JIRA] Created: (LBCLASSIC-89) stop() method is not called on TurboFilter when shutdownAndReset is performed.

stop() method is not called on TurboFilter when shutdownAndReset is performed. ------------------------------------------------------------------------------ Key: LBCLASSIC-89 URL: http://jira.qos.ch/browse/LBCLASSIC-89 Project: logback-classic Issue Type: Bug Components: Other Affects Versions: 0.9.11 Environment: Windows xp. Reporter: alexis morillo Assignee: Logback dev list Priority: Minor I use the following code to initialize and reload logback configuration : LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(lc); lc.shutdownAndReset(); configurator.doConfigure(logFile); I have a turbofilter that needs to do some stuff when stopped. Though, the stop() method is not called in that case. So I added the following code before the shutdownandreset : TurboFilter tbf = lc.getFirstTurboFilter(); while(tbf != null) { tbf.stop(); tbf = tbf.getNext(); } This is the only workaround I found. Is there any way to do better ? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-89?page=com.atlassian.jira.plugin.system... ] Ceki Gulcu updated LBCLASSIC-89: -------------------------------- Priority: Major (was: Minor)
stop() method is not called on TurboFilter when shutdownAndReset is performed. ------------------------------------------------------------------------------
Key: LBCLASSIC-89 URL: http://jira.qos.ch/browse/LBCLASSIC-89 Project: logback-classic Issue Type: Bug Components: Other Affects Versions: 0.9.11 Environment: Windows xp. Reporter: alexis morillo Assignee: Ceki Gulcu
I use the following code to initialize and reload logback configuration : LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(lc); lc.shutdownAndReset(); configurator.doConfigure(logFile); I have a turbofilter that needs to do some stuff when stopped. Though, the stop() method is not called in that case. So I added the following code before the shutdownandreset : TurboFilter tbf = lc.getFirstTurboFilter(); while(tbf != null) { tbf.stop(); tbf = tbf.getNext(); } This is the only workaround I found. Is there any way to do better ?
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-89?page=com.atlassian.jira.plugin.system... ] Ceki Gulcu resolved LBCLASSIC-89. --------------------------------- Fix Version/s: 0.9.15 Resolution: Fixed On LoggerContext reset, registered turbo filters are now stopped before being unregistered. This change occurred in revision 2116.
stop() method is not called on TurboFilter when shutdownAndReset is performed. ------------------------------------------------------------------------------
Key: LBCLASSIC-89 URL: http://jira.qos.ch/browse/LBCLASSIC-89 Project: logback-classic Issue Type: Bug Components: Other Affects Versions: 0.9.11 Environment: Windows xp. Reporter: alexis morillo Assignee: Ceki Gulcu Fix For: 0.9.15
I use the following code to initialize and reload logback configuration : LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(lc); lc.shutdownAndReset(); configurator.doConfigure(logFile); I have a turbofilter that needs to do some stuff when stopped. Though, the stop() method is not called in that case. So I added the following code before the shutdownandreset : TurboFilter tbf = lc.getFirstTurboFilter(); while(tbf != null) { tbf.stop(); tbf = tbf.getNext(); } This is the only workaround I found. Is there any way to do better ?
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

[ http://jira.qos.ch/browse/LBCLASSIC-89?page=com.atlassian.jira.plugin.system... ] Ceki Gulcu edited comment on LBCLASSIC-89 at 12/30/08 12:50 PM: ---------------------------------------------------------------- Hello Alexis, Thank you for this report. I just committed changes to the LoggerContext reset method. Registered turbo filters are now stopped before being unregistered. was (Author: noreply.ceki@qos.ch): On LoggerContext reset, registered turbo filters are now stopped before being unregistered. This change occurred in revision 2116.
stop() method is not called on TurboFilter when shutdownAndReset is performed. ------------------------------------------------------------------------------
Key: LBCLASSIC-89 URL: http://jira.qos.ch/browse/LBCLASSIC-89 Project: logback-classic Issue Type: Bug Components: Other Affects Versions: 0.9.11 Environment: Windows xp. Reporter: alexis morillo Assignee: Ceki Gulcu Fix For: 0.9.15
I use the following code to initialize and reload logback configuration : LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(lc); lc.shutdownAndReset(); configurator.doConfigure(logFile); I have a turbofilter that needs to do some stuff when stopped. Though, the stop() method is not called in that case. So I added the following code before the shutdownandreset : TurboFilter tbf = lc.getFirstTurboFilter(); while(tbf != null) { tbf.stop(); tbf = tbf.getNext(); } This is the only workaround I found. Is there any way to do better ?
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
participants (2)
-
alexis morillo (JIRA)
-
Ceki Gulcu (JIRA)