How to get the logger wrapped in slf4j?
问题 Is it possible to get the logger wrapped by slf4j ? For example, in debug mode, when I inspect org.slf4j.LoggerFactory.getLogger(loggerName) , I can see the logger (here, java.util.logging ) : I want to do something like : // Get the real logger, cast in java.util.logging java.util.logging.Logger myLogger = LoggerFactory.getLogger(loggerName))...; // Use the java.util.logging methods myLogger.setLevel(Level.parse(level)); 回答1: I've found a solution using reflection. Looking for the "logger"