Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 665371779A for ; Sat, 8 Nov 2014 21:30:34 +0000 (UTC) Received: (qmail 33885 invoked by uid 500); 8 Nov 2014 21:30:34 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 33851 invoked by uid 500); 8 Nov 2014 21:30:34 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 33842 invoked by uid 99); 8 Nov 2014 21:30:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Nov 2014 21:30:34 +0000 Date: Sat, 8 Nov 2014 21:30:34 +0000 (UTC) From: "Ankit Thakkar (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-8017) Custom ExchangeFormatter doesn't work for LogComponent 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/CAMEL-8017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14203600#comment-14203600 ] Ankit Thakkar commented on CAMEL-8017: -------------------------------------- We have implemented custom formatter as below, 1. Implemented format(Exchange exchange) method from ExchangeFormatter; haven't extended DefaultExchangeFormatter. 2. Registered custom formatter in spring context as below, > Custom ExchangeFormatter doesn't work for LogComponent > ------------------------------------------------------ > > Key: CAMEL-8017 > URL: https://issues.apache.org/jira/browse/CAMEL-8017 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.12.2 > Environment: Production > Reporter: Ankit Thakkar > > Hello, > We are using log: component to log request, response and exception details. We have been trying to customize DefaultExchangeFormatter to filter certain header fields getting logged in logger. > We have implemented custom ExchangeFormatter and registered in spring context with bean name 'logFormatter'. However, getting below exception during application service restart. > http://camel.apache.org/log.html#Log-Formatting > Exception - > There are 4 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{showAll=false, showBody=false, showCaughtException=true, showStackTrace=true}] > The issue seems to be at this check in DefaultComponent, > if (!endpoint.isLenientProperties()) { > validateParameters(uri, parameters, null); > } > Please let me know if this issue can be fixed. > Thanks -- This message was sent by Atlassian JIRA (v6.3.4#6332)