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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
michael_monash
Contributor
Contributor

Save run console output in a log file

This has been asked and solved before but the solutions no longer work with newer version of Qlik Talend Cloud Data Management R2025-01v2.

Save run console output in a log file

This no longer works:

java.io.File outputFile = new java.io.File("/Users/richardhall/Documents/output.txt");
java.io.File outputFileErr = new java.io.File("/Users/richardhall/Documents/outputErr.txt");
System.setOut(new java.io.PrintStream(new java.io.FileOutputStream(outputFile, true), true));
System.setErr(new java.io.PrintStream(new java.io.FileOutputStream(outputFileErr, true), true));

 

I think error is being redirected but it looks as though console is no longer standard out.

Labels (2)
1 Reply
quentin-vigne
Partner - Creator II
Partner - Creator II

Hi @michael_monash 

Have you tried the first solution from this Qlik Knowledge Article ? 

https://customerportal.qlik.com/article/Qlik-Talend-Data-Integration-How-to-log-Job-output-to-a-file...

 

Alternatively maybe you could try using "java.nio.file" instead of "java.io.file", since newer version of Talend use Java 17 maybe there is something broken about the "old" file library.

 

- Quentin