Setting log level of message at runtime in slf4j
- by scompt.com
When using log4j, the Logger.log(Priority p, Object message) method is available and can be used to log a message at a log level determined at runtime. We're using this fact and this tip to redirect stderr to a logger at a specific log level.
slf4j doesn't have a generic log() method that I can find. Does that mean there's no way to implement the above?