Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 13076 invoked from network); 15 Jul 2009 13:52:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 13:52:05 -0000 Received: (qmail 15215 invoked by uid 500); 15 Jul 2009 13:52:15 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 15177 invoked by uid 500); 15 Jul 2009 13:52:15 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 15160 invoked by uid 99); 15 Jul 2009 13:52:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 13:52:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.214 as permitted sender) Received: from [209.85.218.214] (HELO mail-bw0-f214.google.com) (209.85.218.214) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 13:52:04 +0000 Received: by bwz10 with SMTP id 10so3119931bwz.20 for ; Wed, 15 Jul 2009 06:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=ld7ZTCyDgHrgGcksW3hLvsV6BzvmIoYvGaUw7sEh0vs=; b=D+B0yd2cqKDZJc3iQe6zfv9bszxzMSllMJlW9012XEFklOo2oOz9U8YMAUj2ciXTr3 DjwQzhi55KeJtbSS5FNEiUblXh7uXkDxu1cQP1brS7TliClb+DSs3wkDisMUvs7f2Zcf yIFsgUpVQptmVrB4Jfs3D7+V+nPripe+q5QqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=kEMbNd6s4bdXg7Kk8Ei9u3L76oajN+zaB7c+JLYevgQqnM77wGyG5EPeVKxM4gCZcZ zkPwVMouso7X0PIuz+cgzGNSV8s0FOdtycEvyT2fd8qMfWNiYv8D2qJNexNQW/SDFcNB s0XLY0MW5O5wMX/Rs8av+dB1gMzJn76fAJ344= MIME-Version: 1.0 Received: by 10.223.107.19 with SMTP id z19mr4045377fao.27.1247665902230; Wed, 15 Jul 2009 06:51:42 -0700 (PDT) In-Reply-To: References: <5380c69c0907150635h39162339r7a64b943174f1248@mail.gmail.com> From: Claus Ibsen Date: Wed, 15 Jul 2009 15:51:22 +0200 Message-ID: <5380c69c0907150651u54876892xe66ba021d5cfaf0d@mail.gmail.com> Subject: Re: Apache camel logger processor / only one line is displayed To: dev@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Its the TRACER that you have in the displayed log. the LOG component is not the tracer. You have configured it to log at DEBUG level maybe try raising that to INFO/ERROR or whatever. In case DEBUG logging is not enabled. On Wed, Jul 15, 2009 at 3:49 PM, Charles Moulliard wr= ote: > Nothing change if I use this uri > > log:x3slog?level=3DDEBUG&multiline=3Dtrue&showException=3Dtrue > > BTW, in the doc, showException is defined by default to false --> so :no > stack trace is show > > > > > or this > > log:x3slog?level=3DDEBUG&multiline=3Dtrue&showAll=3Dtrue > > 15:46:22,406 | INFO =A0| enerContainer-22 | TraceInterceptor =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 | > rg.apache.camel.processor.Logger =A0166 | > ID:dell-charles-3698-1247659477812-3:12:1:1:1 >>> *[class > java.lang.Exception] --> [class java.lang.Exception]*, Pattern:InOnly, > Headers:{CamelFileNameOnly=3DOINP-dummy.txt, JMSCorrelationID=3Dnull, > JMSMessageID=3DID:dell-charles-3698-1247659477812-3:12:1:1:1, > CamelFileAbsolutePath=3Dd:\temp\data\oinp\OINP-dummy.txt, JMSDeliveryMode= =3D2, > CamelBeanMultiParameterArray=3Dfalse, CamelRedelivered=3Dfalse, > CamelBeanMethodName=3Dnull, JMSReplyTo=3Dnull, JMSTimestamp=3D12476655820= 15, > JMSDestination=3Dqueue://x3s:request, JMSType=3Dnull, JMSRedelivered=3Dfa= lse, > CamelFileLength=3D332, CamelFileAbsolute=3Dtrue, CamelFileLastModified=3D= Tue Jun > 16 14:50:55 CEST 2009, JMSExpiration=3D0, > CamelFileRelativePath=3Dd:\temp\data\oinp\OINP-dummy.txt, origin=3Dfile, > JMSPriority=3D4, messageType=3DOINP, JMSXGroupID=3Dnull, > CamelFileName=3DOINP-dummy.txt, > CamelFilePath=3Dd:\temp\data\oinp\OINP-dummy.txt, > CamelFileParent=3Dd:\temp\data\oinp, CamelRedeliveryCounter=3D0}, > BodyType:java.util.ArrayList, > Body:[{com.xpectis.x3s.model.backoffice.emx.oinp.in.InOinpMessage=3Dcom.x= pectis.x3s.model.backoffice.emx.oinp.in.InOinpMessage@12923c6 > [ > =A0providerId=3D11111 > =A0originatorId=3D22222 > =A0senderCompanyId=3D33333 > =A0agencyId=3DAGENCY23 > =A0dealCurrencyCode=3DEUR > =A0targetCompanyId=3D44444 > =A0productType=3DPRODUCT2 > =A0fundIdType=3D4 > =A0fundId=3DLU1234567890 > =A0movementType=3D1 > =A0originalSendTime=3DMon Jan 07 14:02:09 CET 2008 > =A0orderUnits=3D10 > =A0orderCashAmount=3D1287.44 > =A0messageType=3D > > > Charles Moulliard > Senior Enterprise Architect > Apache Camel Committer > > ***************************** > blog : http://cmoulliard.blogspot.com > > > On Wed, Jul 15, 2009 at 3:39 PM, Charles Moulliard = wrote: > >> Sorry for my mistake master Claus ;-) >> >> Charles Moulliard >> Senior Enterprise Architect >> Apache Camel Committer >> >> ***************************** >> blog : http://cmoulliard.blogspot.com >> >> >> On Wed, Jul 15, 2009 at 3:35 PM, Claus Ibsen wrot= e: >> >>> A good idea is to read the manual / log component :) >>> http://camel.apache.org/log.html >>> >>> The option: showException should be set to true >>> >>> BTW: I would like to add an additonal option in the future: >>> showTrackTrace to eg not output exception stacktrace, but still the >>> exception message and exception class type can be logged. A stacktrace >>> can be very verbose. >>> >>> >>> On Wed, Jul 15, 2009 at 3:25 PM, Charles Moulliard >>> wrote: >>> > Hi, >>> > >>> > In my route, I use the camel logger processor to log some info in a >>> file. I >>> > have configured it to display error on multilines >>> > >>> > =A0 =A0 =A0 =A0 >>> > =A0 =A0 =A0 =A0 =A0 =A0 >>> > =A0 =A0 =A0 =A0 =A0 =A0 >>> > >>> > =A0 =A0 =A0 =A0 =A0 =A0 >>> > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0>> > type=3D"com.xpectis.x3s.platform.model.Request" /> >>> > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0>> > method=3D"updateRequestStatus"/> >>> > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > >>> > >>> com.xpectis.x3s.exception.X3SClientException >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0>> > method=3D"processException" /> >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > >>> =A0java.lang.Exception >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0>> > uri=3D"log:x3slog?level=3DDEBUG&multiline=3Dtrue" /> >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>> > >>> > =A0 =A0 =A0 =A0 =A0 =A0 >>> > >>> > =A0 =A0 =A0 =A0 >>> > >>> > but I only see one line like here : >>> > >>> > 15:16:36,328 | INFO =A0| erContainer-1657 | TraceInterceptor >>> =A0 | >>> > rg.apache.camel.processor.Logger =A0 88 | >>> > ID-dell-charles-3769-1247659499875-0-12 >>> *[class java.lang.Excepti= on] >>> --> >>> > [class java.lang.Exception]*, Pattern:InOnly, >>> > Headers:{CamelFileNameOnly=3DOINP-dummy.txt, JMSCorrelationID=3Dnull, >>> > JMSMessageID=3DID:dell-charles-3698-1247659477812-3:20:1:1:1, >>> > CamelFileAbsolutePath=3Dd:\temp\data\oinp\OINP-dummy.txt, >>> JMSDeliveryMode=3D2, >>> > CamelBeanMultiParameterArray=3Dfalse, CamelBeanMethodName=3Dnull, >>> > JMSTimestamp=3D1247663796078, JMSReplyTo=3Dnull, >>> > JMSDestination=3Dqueue://x3s:request, JMSType=3Dnull, JMSRedelivered= =3Dfalse, >>> > CamelFileLength=3D332, CamelFileAbsolute=3Dtrue, >>> > CamelFileRelativePath=3Dd:\temp\data\oinp\OINP-dummy.txt, JMSExpirati= on=3D0, >>> > CamelFileLastModified=3DTue Jun 16 14:50:55 CEST 2009, origin=3Dfile, >>> > JMSPriority=3D4, messageType=3DOINP, JMSXGroupID=3Dnull, >>> > CamelFileName=3DOINP-dummy.txt, >>> > CamelFilePath=3Dd:\temp\data\oinp\OINP-dummy.txt, >>> > CamelFileParent=3Dd:\temp\data\oinp}, BodyType:java.util.ArrayList, >>> > >>> Body:[{com.xpectis.x3s.model.backoffice.emx.oinp.in.InOinpMessage=3Dcom= .xpectis.x3s.model.backoffice.emx.oinp.in.InOinpMessage@1de2bea >>> > [ >>> > =A0providerId=3D11111 >>> > =A0originatorId=3D22222 >>> > =A0senderCompanyId=3D33333 >>> > =A0agencyId=3DAGENCY23 >>> > =A0dealCurrencyCode=3DEUR >>> > =A0targetCompanyId=3D44444 >>> > =A0productType=3DPRODUCT2 >>> > =A0fundIdType=3D4 >>> > =A0fundId=3DLU1234567890 >>> > =A0movementType=3D1 >>> > =A0originalSendTime=3DMon Jan 07 14:02:09 CET 2008 >>> > =A0orderUnits=3D10 >>> > =A0orderCashAmount=3D1287.44 >>> > =A0messageType=3D >>> > ]}, >>> > >>> > How can I see all the stack trace of the error ? >>> > >>> > Regards, >>> > >>> > Charles Moulliard >>> > Senior Enterprise Architect >>> > Apache Camel Committer >>> > >>> > ***************************** >>> > blog : http://cmoulliard.blogspot.com >>> > >>> >>> >>> >>> -- >>> Claus Ibsen >>> Apache Camel Committer >>> >>> Open Source Integration: http://fusesource.com >>> Blog: http://davsclaus.blogspot.com/ >>> Twitter: http://twitter.com/davsclaus >>> >> >> > --=20 Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus