Do I need to flush events when shutting down using logback?

后端 未结 4 1953
傲寒
傲寒 2021-01-08 01:02

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();
<         


        
4条回答
  •  天命终不由人
    2021-01-08 01:23

    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

提交回复
热议问题