I'm using slf4j logging facade over the jdk built in logger. I'm confused how to set the logging level using a ConsoleHandler for SLF4J.
public Class foo(){
Logger log = Logger.getLogger(foo.class()) //logger from SLF
public void run(){
log.info("info")
}
private static void main(String[] args){
ConsoleHandler con = new ConsoleHandeler(); //from java.util.logging
con.setLevel(Level.OFF)
run()
}
}
>INFO: info
Shouldn't the info be turned off? I didn't want to set up a logging properties file because I want the user to input the level of logging they want from a command line interface. I only care about console appending. Is this similar to this: Using java.util.logging to log on the console