[logback-user] Shutting down async appenders, when using logback through slf4j
ceki at qos.ch
Thu Jun 13 16:42:19 CEST 2013
You need to shutdown logback when redeploying your app. See
Let us know if this helps,
On 6/13/2013 1:21 PM, Mads Bondo Dydensborg wrote:
> Hi all
> I have a feeling that this is a FAQ, but my google-foo failed me.
> We provide an application that uses slf4j. The users configure it, in
> logback.xml, to use, among other things, an async appender.
> Tomcat complains about this, when redeploying or shutting down:
> SEVERE: The web application [/openformat] appears to have started a
> thread named [AsyncAppender-Worker-Thread-2] but has failed to stop it.
> This is very likely to create a memory leak.
> I found this issue/request:
> http://bugzilla.slf4j.org/show_bug.cgi?id=201 (Need ability to shutdown
> loggers and flush appenders), but it does not seem that this request has
> been honored.
> So, what is the recommended way to solve this? We would like to not
> hardcode the app to use logback (as it could potentially be used with
> log4j), but there seems to be no way to stop an async appender that the
> users have configured in?
> Thanks in advance.
> Med venlig hilsen/Regards
> Chefarkitekt/Chief Architect cand.scient.dat, Ph.d., Mads Bondo Dydensborg
> Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 29 84
> 00 42
> Logback-user mailing list
> Logback-user at qos.ch
More information about the Logback-user