My java console is being bombarded with messages and I want to turn this off.
my code is
List<Logger> loggers = Collections.<Logger>list(LogManager.getCurrentLoggers());
loggers.add(LogManager.getLogger(<<something goes here>>));
for (Logger logger : loggers) {
logger.setLevel(Level.OFF);
}
Is this code right, I don't know how to setup the alternative which is Log4j.properties.
Anyway the code will likely turn off all loggers, how do I turn off Log4j (i.e. quartz scheduler)
Any help??