Setting log level of message at runtime in slf4j

Posted by scompt.com on Stack Overflow See other posts from Stack Overflow or by scompt.com
Published on 2010-04-12T11:39:19Z Indexed on 2010/04/12 11:43 UTC
Read the original article Hit count: 378

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about slf4j