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(); <
Version 1.1.10 onwards, logback takes care of stopping the current logback-classic context when the web-app is stopped or reloaded.
Here's the updated doc: https://logback.qos.ch/manual/configuration.html#webShutdownHook