Re: Camel Log - Karaf

2016-10-20 Thread Claus Ibsen
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


On Thu, Oct 20, 2016 at 8:08 PM, ychawla <premiergenerat...@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

2016-10-20 Thread Steve Huston
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:premiergenerat...@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

2016-10-20 Thread ychawla
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

2016-10-20 Thread Steve Huston
Try log:set DEBUG


> -Original Message-
> From: ychawla [mailto:premiergenerat...@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:
> 
> 
> 
> 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.


Camel Log - Karaf

2016-10-20 Thread ychawla
Hello All,
I have a log statement in a camel route that is at the DEBUG loggingLevel:



>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.