Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6345

Support Logging in JexlClaimMapper scripts

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.4, 2.7.15
    • Fix Version/s: 3.1, 2.7.16, 3.0.5
    • Component/s: STS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      To improve debugging of Jexl scripts it will be helpful to provide a logging util.

      You can create log statements like this:

      LOG:fine("Debug message");
      LOG:info("Useful information");
      LOG:warning("This is a warning");
      LOG:severe("Error message");
      

      Note the colon instead of the dot after LOG

      If you don't want to use the java.util.logging.Logger you can setup for example a SLF4J logger like this:

      org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MyMapperTest.class);
      jcm = new JexlClaimsMapper();
      jcm.getJexlEngine().getFunctions().put("LOG", logger);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jan4talend Jan Bernhardt
                Reporter:
                jan4talend Jan Bernhardt
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: