Do you mean Camel 2.8 version or do you use the source from the trunk, eg 2.9-SNAPSHOT?
There is a fix in the Camel test kit in 2.9-SNAPSHOT so the tracer should work fine by logging at INFO level by default. There was a conflict with a debugger installed by the test kit, which would alter the logging level on the tracer. On Thu, Aug 25, 2011 at 8:27 PM, roy.truelove <roytruel...@gmail.com> wrote: > Camel 2.9 > > I wrote a very simple junit test (below) with the tracer turned on, but I > didn't seem to get any tracing messages, so I fired up the debugger. > > It looks like when the tracer tries to log, it has have it's log level set. > Initially this is done by the DefaultDebugger class, which sets it to 'OFF' > (line 334). > > I put a break point on the other places where the tracer's 'setLogLevel' > method is called, and it never is. I'd expect it to be set to 'INFO' when I > call 'context.setTracing(true)'. > > Where is the tracer intended to set the log level to INFO? > > Thanks, > Roy > > public class TracerTest extends CamelTestSupport { > > @Override > protected RouteBuilder createRouteBuilder() { > return new RouteBuilder() { > > @Override > public void configure() throws Exception { > from("direct:in").to("mock:out"); > } > }; > } > > @Test > public void testName() throws Exception { > > context.setTracing(true); > template.sendBody("direct:in", "Hello!"); > > Thread.sleep(1000000); // so the debug can do it's thing > } > } > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Tracer-Logging-never-turned-on-tp4735516p4735516.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/