[logback-dev] Joran Configurator

Ceki Gulcu listid at qos.ch
Sat May 3 19:36:02 CEST 2008


Hello Julia,

When you are reloading the context, are you calling the 
LoggerContext.shutdownAndReset() method?

Looking at the LoggerContext class, it looks like the TurboFilterChain is never 
reset, which explains the behavior you are observing.

The problem has been corrected in SVN revision 1678 [1]. It will be shipped with 
the next version of logback.

I hope this helps,

[1] http://svn.qos.ch/viewvc?view=rev&revision=1678


Hu, Julia wrote:
> Hi,
> 
>  
> 
> I have created customized TurboFilter to support filtering the logs by 
> FI, and expecting it supports dynamic configuration. Once I use 
> JoranConfigurator to reload context, noticed that TurboFilter’s decide() 
> method has been called twice, obviously, log context caches previous 
> TurboFilter. What’s best way to support dynamic configuration for 
> TurboFilter? It seems normal filter works fine for dynamic 
> reconfiguration, but we kind of prefer fast fail feature for TurboFilter.
> 
>  
> 
> Thanks!
> 
> Julia
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> logback-dev mailing list
> logback-dev at qos.ch
> http://qos.ch/mailman/listinfo/logback-dev

-- 
Ceki Gülcü
QOS.ch is looking to hire talented developers in Switzerland.  If
interested, please contact c e k i AT q o s . c h




More information about the logback-dev mailing list