Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 96845 invoked from network); 30 Sep 2008 11:03:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Sep 2008 11:03:57 -0000 Received: (qmail 34233 invoked by uid 500); 30 Sep 2008 11:03:55 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 34217 invoked by uid 500); 30 Sep 2008 11:03:55 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 34206 invoked by uid 99); 30 Sep 2008 11:03:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2008 04:03:55 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martin.lists@imap.cc designates 66.111.4.27 as permitted sender) Received: from [66.111.4.27] (HELO out3.smtp.messagingengine.com) (66.111.4.27) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2008 11:02:52 +0000 Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 9D21F1716BD for ; Tue, 30 Sep 2008 07:00:17 -0400 (EDT) Received: from web7.messagingengine.com ([10.202.2.216]) by compute2.internal (MEProxy); Tue, 30 Sep 2008 07:00:17 -0400 Received: by web7.messagingengine.com (Postfix, from userid 99) id 705FC3C311; Tue, 30 Sep 2008 07:00:17 -0400 (EDT) Message-Id: <1222772417.8958.1276714237@webmail.messagingengine.com> X-Sasl-Enc: kuPt9qzTmG/Zx023lpKWK+H/tPbmkU0dWjDzff5hIcMT 1222772417 From: "Martin Gilday" To: camel-user@activemq.apache.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface References: <1222771954.7958.1276712691@webmail.messagingengine.com> Subject: Re: loggingErrorHandler In-Reply-To: <1222771954.7958.1276712691@webmail.messagingengine.com> Date: Tue, 30 Sep 2008 12:00:17 +0100 X-Virus-Checked: Checked by ClamAV on apache.org Sorry I found the JIRA issue for it. When I've switched to 1.5-SNAPSHOT I can see that it is fixed now. Thanks, Martin. ----- Original message ----- From: "Martin Gilday" To: camel-user@activemq.apache.org Date: Tue, 30 Sep 2008 11:52:34 +0100 Subject: loggingErrorHandler Hi riders, I'm trying to replace the default error logger with loggingErrorHandler. But when I run the follow routes shown below I get no log messages at all. When I delete the error handler line from my route builder then in my logs I can see that the default dead letter channel kicks in and retires the processor 5 times. With the loggingErrorHandler all I see in my log is "This is inside the processor" then nothing. I have my log4j default level set to debug. Any ideas why this snippet may not be working as I expect? Routes routes = new RouteBuilder() { @Override public void configure() throws Exception { errorHandler(loggingErrorHandler("org.test")); from("seda:test").process(new Processor() { @Override public void process(final Exchange exchange) throws Exception { logger.info("This is inside the processor"); throw new Exception("Fubar"); } }); } }; CamelContext context = new DefaultCamelContext(); context.addRoutes(routes); context.start(); ProducerTemplate template = context.createProducerTemplate(); template.sendBody("seda:test", "nothing");