Details
-
Wish
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
2.1.5
-
None
-
Apache CXF 3.1.6
Description
Unable to activate debug log to WSS4J with CXF 3.1.6
log4j.properties
# Global logging configuration log4j.rootLogger=DEBUG, stdout log4j.logger.org.apache.wss4j=DEBUG # Console output... log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.conversionPattern=[%p,%c,%t] %m%n
isDebugEnabled still return false, and debug log never appear.
Merlin.java
private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Merlin.class); private static final boolean DO_DEBUG = LOG.isDebugEnabled(); .... if (DO_DEBUG) { LOG.debug("The KeyStore " + keyStoreLocation + " of type " + type + " has been loaded"); }