cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Bernhardt (JIRA)" <>
Subject [jira] [Created] (CXF-6345) Support Logging in JexlClaimMapper scripts
Date Fri, 10 Apr 2015 12:55:12 GMT
Jan Bernhardt created CXF-6345:

             Summary: Support Logging in JexlClaimMapper scripts
                 Key: CXF-6345
             Project: CXF
          Issue Type: Improvement
          Components: STS
    Affects Versions: 2.7.15, 3.0.4
            Reporter: Jan Bernhardt
            Assignee: Jan Bernhardt
            Priority: Minor
             Fix For: 3.1.0, 2.7.16, 3.0.5

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");
(on) 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);

This message was sent by Atlassian JIRA

View raw message