Alexandre Meyer created WSS-579:
-----------------------------------
Summary: Sample configuration WSS4J with log4j
Key: WSS-579
URL: https://issues.apache.org/jira/browse/WSS-579
Project: WSS4J
Issue Type: Wish
Components: WSS4J Handlers
Affects Versions: 2.1.5
Environment: Apache CXF 3.1.6
Reporter: Alexandre Meyer
Assignee: Colm O hEigeartaigh
Priority: Minor
Unable to activate debug log to WSS4J with CXF 3.1.6
{code:xml|title=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
{code}
isDebugEnabled still return false, and debug log never appear.
{code:title=Merlin.java|borderStyle=solid}
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");
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]