Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
n999
Contributor II
Contributor II

Best way to log in a route

Hi

 

I have a route where I am adding a basic cLog between every component that does some work.

This doubles the amount of talend components on my canvas.

 

In the interest of saving screen real estate, I was wondering if there is a more succinct way of doing this. Can I use apache DSL at the start of the route to achieve the same goal?

 

Cheers

n  

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

I have just been chatting with the inventor of Apache Karaf and he recommended using Camel tracer + Decanter. Take a look at the link below and see if it meets your requirements. 

https://github.com/apache/karaf-decanter/blob/master/manual/src/main/asciidoc/user-guide/collectors.... 

View solution in original post

7 Replies
Anonymous
Not applicable

I have just been chatting with the inventor of Apache Karaf and he recommended using Camel tracer + Decanter. Take a look at the link below and see if it meets your requirements. 

https://github.com/apache/karaf-decanter/blob/master/manual/src/main/asciidoc/user-guide/collectors.... 

n999
Contributor II
Contributor II
Author

Hiya

Many thanks for the quick and "A list celebrity" response!

Looks v interesting. Looks quite low level. Makes the tradeoff between extra components vs bespoke extra-talend config a bit harder to call....I was hoping I could drop in something into a cConfig or cjavaDSLProcesser, etc to enable global logging.

Cheers for the post though - will read through

thanks

Anonymous
Not applicable

I said similar to him. He said that it really isn't a big deal to implement. Unfortunately I do not have a Karaf up and running at the moment, otherwise I would try it. If you have a spare one that you can experiment on, I'd recommend you give it a go. 

Anonymous
Not applicable

Did this method work for you when you tried it?

n999
Contributor II
Contributor II
Author

Sorry - not had a chance to experiment. I think it's unlikely I will have time for a while. happy to accept as solution though...cheers

n999
Contributor II
Contributor II
Author

Hi

Looking at this https://camel.apache.org/manual/latest/tracer.html it looks like a Tracer should work out of the box for Camel?

 

Also spotted this https://community.talend.com/t5/Architecture-Best-Practices-and/Improve-Camel-flow-monitoring/ta-p/1... that says 

 

"There is no request/exchange specific logging information out-of-the-box from Camel without increasing the log level to DEBUG"

 

Is this talking about the Tracer?

 

Does 

CamelContext.setTracing(true);

Not work OOTB with Talend?

 

cheers

 

Anonymous
Not applicable

I'm afraid I am not sure about this. I have not tried it. What results do you get when you try it?