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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] writing to a txt file

I need a component to write messages/info to separate text files.
For example, writing error messages to a txt log file and warning to a different log file.
Can anyone help me please?
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Then you have not tried e.g. the tFileOutputDelimited or tFileOutputPositional
regards,
Walter

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Hi
Maybe what you need is tLogCatcher.
There are three options on this component: Catch Java Exception, Catch tDie, Catch tWarn.
If you want to do this separately, put two tLogCatcher in your job.
The first tLogCatcher: only check "Catch Java Exception". Then link it with output component.
The second tLogCatcher: only check "Catch tWarn". Then link it with output component.
I hope the error and warning you mentioned is Java Exception and tWarn..
Regards,
Pedro
Anonymous
Not applicable
Author

Hi Pedro,
Thanks for your quick response!
But the problem is that if i use a tLogCatcher, i cannot specify the name of a txt file to which i want to output the warnings.
I want to be able to specify the txt file names and be able to output warnings to a txt file named warning.txt and output the errors to a txt file named errors.txt.
kind regards.
Anonymous
Not applicable
Author

Hi
But you can.
tLogCatcher_1(only check "Catch Java Exception") --main-->tFileoutput_1(error.txt)
tLogCatcher_2(only check "Catch tWarn") --main-->tFileoutput_2(warning.txt)
Regards,
Pedro
Anonymous
Not applicable
Author

can you please tell me which component i must use to output in the format .txt?
because among the tFileOutputXXXX components i have access to on talend, none output in the .txt format.
thanks.
Anonymous
Not applicable
Author

Then you have not tried e.g. the tFileOutputDelimited or tFileOutputPositional
regards,
Walter
Anonymous
Not applicable
Author

Thanks it works!