You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ychawla <pr...@gmail.com> on 2016/10/20 15:33:43 UTC

Camel Log - Karaf

Hello All,
I have a log statement in a camel route that is at the DEBUG loggingLevel:

<camel:log message="This is the ${body}" loggingLevel="DEBUG"/>

From the karaf console, how can I set the logging level for the camel
context?

I know that I can run a karaf command like this to set the logging level for
a java package:

log:set DEBUG org.packagename.here

However, I am not sure what to use for the package name for a camel route or
camel context.  Any ideas on how I can change the logging level for a camel
route?

Thanks,
Yogesh



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Log-Karaf-tp5789034.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Log - Karaf

Posted by Claus Ibsen <cl...@gmail.com>.
Camel uses the id of the route as the logger name by default. If you
want to use a different name you can specify the logger name in the
<log>

On Thu, Oct 20, 2016 at 8:08 PM, ychawla <pr...@gmail.com> wrote:
> Hi Shuston,
> I can do log:set DEBUG but then I log everything.  I have a file endpoint
> that I poll from and that generates too much logging for it to be useful.
> Is there a way to isolate it to the route or context level?
>
> Thanks,
> Yogesh
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Log-Karaf-tp5789034p5789046.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

RE: Camel Log - Karaf

Posted by Steve Huston <sh...@riverace.com>.
I'm only guessing sort of, but try the camel context id.

You could get a more definitive answer by letting it log DEBUG everything, find the lines you want from your route(s) and note the name they're logged under, then just use that.

-Steve

> -----Original Message-----
> From: ychawla [mailto:premiergeneration@gmail.com]
> Sent: Thursday, October 20, 2016 2:09 PM
> To: users@camel.apache.org
> Subject: RE: Camel Log - Karaf
> 
> Hi Shuston,
> I can do log:set DEBUG but then I log everything.  I have a file endpoint that I
> poll from and that generates too much logging for it to be useful.
> Is there a way to isolate it to the route or context level?
> 
> Thanks,
> Yogesh
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-
> Log-Karaf-tp5789034p5789046.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Camel Log - Karaf

Posted by ychawla <pr...@gmail.com>.
Hi Shuston,
I can do log:set DEBUG but then I log everything.  I have a file endpoint
that I poll from and that generates too much logging for it to be useful. 
Is there a way to isolate it to the route or context level?

Thanks,
Yogesh



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Log-Karaf-tp5789034p5789046.html
Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Camel Log - Karaf

Posted by Steve Huston <sh...@riverace.com>.
Try log:set DEBUG


> -----Original Message-----
> From: ychawla [mailto:premiergeneration@gmail.com]
> Sent: Thursday, October 20, 2016 11:34 AM
> To: users@camel.apache.org
> Subject: Camel Log - Karaf
> 
> Hello All,
> I have a log statement in a camel route that is at the DEBUG loggingLevel:
> 
> <camel:log message="This is the ${body}" loggingLevel="DEBUG"/>
> 
> From the karaf console, how can I set the logging level for the camel context?
> 
> I know that I can run a karaf command like this to set the logging level for a
> java package:
> 
> log:set DEBUG org.packagename.here
> 
> However, I am not sure what to use for the package name for a camel route
> or camel context.  Any ideas on how I can change the logging level for a camel
> route?
> 
> Thanks,
> Yogesh
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-
> Log-Karaf-tp5789034.html
> Sent from the Camel - Users mailing list archive at Nabble.com.