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
Post a Comment