View Revisions: Issue #1067

Summary 0001067: Redirect java.util.logging to Log4j
Revision 2019-06-21 13:20 by rijkr
Description IST: Java libraries that use java.util.logging write to stdout/stderr.
SOLL: Redirect Java Logging to Log4j. Use maven jul-to-slf4j and add those lines to main method:
LogManager.getLogManager().reset();
SLF4JBridgeHandler.install();
Now you can control logging from log4j.properties file. For example:
log4j.logger.org.glassfish.jersey=TRACE
Revision 2019-06-21 11:27 by rijkr
Description IST: Java libraries that use java.util.logging write to stdout/stderr.
SOLL: Redirect Java Logging to Log4j. Use maven jul-to-slf4j and add those lines to main method:
LogManager.getLogManager().reset();
SLF4JBridgeHandler.install();