Grokbase Groups Camel users May 2016
FAQ
Yes

setLogName is not a file name, but the name of the logger in use, eg
it uses SLF4J API to log with that name.
So you need to configure your slf4j logger to use a file for logging.



On Tue, May 31, 2016 at 2:05 PM, nicolasduminil
wrote:
Hello,

I'm trying to use the Camel Tracer and I set it up, as follows:

getContext().setTracing(true);
Tracer tracer = new Tracer();
tracer.setLogName("c:/temp/camel-trace.log");
tracer.getDefaultTraceFormatter().setShowProperties(true);
tracer.getDefaultTraceFormatter().setShowHeaders(false);
getContext().addInterceptStrategy(tracer);

I look with jConsole and I can see that the tracer is configured as
expected. But it doesn't create any file. Did I miss anything ?

Many thanks in adavance,

Nicolas



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Tracer-doesn-t-work-tp5783296.html
Sent from the Camel - Users mailing list archive at Nabble.com.


--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupusers @
categoriescamel
postedMay 31, '16 at 12:05p
activeJun 8, '16 at 9:26a
posts3
users2
websitecamel.apache.org

2 users in discussion

Nicolasduminil: 2 posts Claus Ibsen: 1 post

People

Translate

site design / logo © 2017 Grokbase