Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-579

Sample configuration WSS4J with log4j

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.1.5
    • None
    • WSS4J Handlers
    • 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");
      }
      

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            alexflex25 Alexandre Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: