You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2016/10/14 14:24:23 UTC
[jira] [Closed] (CXF-6345) Support Logging in JexlClaimMapper
scripts
[ https://issues.apache.org/jira/browse/CXF-6345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh closed CXF-6345.
------------------------------------
> Support Logging in JexlClaimMapper scripts
> ------------------------------------------
>
> Key: CXF-6345
> URL: https://issues.apache.org/jira/browse/CXF-6345
> Project: CXF
> Issue Type: Improvement
> Components: STS
> Affects Versions: 3.0.4, 2.7.15
> 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:
> {code}
> LOG:fine("Debug message");
> LOG:info("Useful information");
> LOG:warning("This is a warning");
> LOG:severe("Error message");
> {code}
> (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:
> {code}
> org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(MyMapperTest.class);
> jcm = new JexlClaimsMapper();
> jcm.getJexlEngine().getFunctions().put("LOG", logger);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)