We are migrating to logback from log4j for several web apps. In the shutdown of our application we currently call:
org.apache.log4j.LogManager.shutdown(); <
It seems that just adding into configuration should stop the context.
From logback docs:
....
And from DelayingShutdownHook summary:
ShutdownHook implementation that stops the Logback context after a specified delay. The default delay is 0 ms (zero).