java - How can I change log level of single logger in runtime? - Stack Overflow
See top related question: SLF4J - Logback: How to configure loggers in runtime?
More specific ((ch.qos.logback.classic.Logger)LoggerFactory.getLogger("abc.xyz")) .setLevel(Level.XXX) should do the trick.
I'm not sure what your use case is, but I prefer to use the JMX interface: http://logback.qos.ch/manual/jmxConfig.html.
Read full article from java - How can I change log level of single logger in runtime? - Stack Overflow
No comments:
Post a Comment