java - How can I change log level of single logger in runtime? -


i wanna read spring property , based on property change log level packages (not root logger). how can implement using logback?

see top related question: slf4j - logback: how configure loggers in runtime?

more specific ((ch.qos.logback.classic.logger)loggerfactory.getlogger("abc.xyz")) .setlevel(level.xxx) should trick.

i'm not sure use case is, prefer use jmx interface: http://logback.qos.ch/manual/jmxconfig.html.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -