How to change root logging level programmatically for logback

前端 未结 7 1222
猫巷女王i
猫巷女王i 2020-11-29 16:58

I have the following logback.xml file:

 

          


        
相关标签:
7条回答
  • 2020-11-29 17:33

    I assume you are using logback (from the configuration file).

    From logback manual, I see

    Logger rootLogger = LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);

    Perhaps this can help you change the value?

    0 讨论(0)
提交回复
热议问题