The Lab

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Logging

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

...

Code Block
languagejava
titleexample logging.properties file
handlers= java.util.logging.ConsoleHandler

java.util.logging.ConsoleHandler.level = INFO
com.marketfactory.api.level = INFO
 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.