camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel Tracer doesn't work
Date Tue, 31 May 2016 14:13:22 GMT
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
<nicolas.duminil@simplex-software.fr> 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

Mime
View raw message