Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79396175F8 for ; Fri, 10 Apr 2015 13:19:47 +0000 (UTC) Received: (qmail 67230 invoked by uid 500); 10 Apr 2015 13:19:13 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 67197 invoked by uid 500); 10 Apr 2015 13:19:13 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 67184 invoked by uid 99); 10 Apr 2015 13:19:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 13:19:13 +0000 Date: Fri, 10 Apr 2015 13:19:13 +0000 (UTC) From: "Jan Bernhardt (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CXF-6345) Support Logging in JexlClaimMapper scripts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Bernhardt resolved CXF-6345. -------------------------------- Resolution: Fixed > 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)