The MFClient will, by default, initialize a java.util.logging.Logger
To override this behavior you should, before creating the MFClient instance, set your own handler on the Logger com.marketfactory.api
You can do this either programmatically
Handler fh = new ConsoleHandler();
fh.setLevel(Level.OFF);
Logger logger = Logger.getLogger("com.marketfactory.api");
logger.setLevel(Level.SEVERE);
logger.addHandler(fh);
logger.setUseParentHandlers(false); |
or in a JUL properties file and set it using -Djava.util.logging.config.file=logging.properties
handlers= java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level = INFO com.marketfactory.api.level = SEVERE # this controls the level of the MarketFactory API logging |
Redirection
You could also redirect the logging using slf4j or log4j using the JUL adapters.