You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2016/05/26 09:11:13 UTC

[jira] [Resolved] (WSS-579) Sample configuration WSS4J with log4j

     [ https://issues.apache.org/jira/browse/WSS-579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved WSS-579.
-------------------------------------
    Resolution: Not A Problem

> 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
>              Labels: newbie
>
> 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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org