Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

easy way to switch on and off tLogRow

Hi, I'm looking for an easy way to switch on and off tLogRow : how to change tLogRow enable or disable easily .

I'm using talend open stdio for data integration.

  Best regards,

 

Labels (2)
6 Replies
manodwhb
Champion II
Champion II

@coffeeno ,Deactivate tLogrow or Activate if it is Deactivated.

Anonymous
Not applicable
Author

sorry for little explanation. i know how to manually activate or deactivate components.

 

i would like to change many tLogRows activate or deactivate status.

 

akumar2301
Specialist II
Specialist II

 

You cannot deactivate/activate Component at runtime but You could redirect tLogRow Output to File instead of Console dynamically. Below Link will help ,

 

https://community.talend.com/t5/How-Tos-and-Best-Practices/Redirect-the-output-from-the-console-to-a...

 

You could set the steam based on context condition.

Anonymous
Not applicable
Author

If you are comfortable using a bit of Java you could write your own method for doing this. In the past the I have created context variables for the purpose of switching on debugging code in jobs running in Production. So if something was showing weird behaviour, I was able to set a context variable called "Debug" to true. Then, in different parts of the job I had certain mechanisms triggered by this context variable. Nothing would change the data that was produced, but it would reroute information or output more information to logs. 

 

Using this in your job you could add tJavaFlex components which are configured to output column information (using System.out calls) IF your "Debug" variable is switched to true. Otherwise, the data is just passed straight through your tJavaFlex. 

 

That is just one example. It might not suit your precise requirement, but hopefully it will give you some ideas.

Anonymous
Not applicable
Author

Does "run if trigger" solve my issue ?

 

I tried but i couldn't put "if" before tLogRow.

Anonymous
Not applicable
Author

No, the RunIf is just a trigger. It doesn't carry datarows. Your requirement is one which is not supported out of the box, but is entirely possible using the method I suggested.