Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
Can I save output in run-window to txt file ?
Try to do it through Stats&logs settings
but only statistics gathered (may be also log)
2012-10-05 18:10:28;TCd7dK;TCd7dK;TCd7dK;6132;THINKBI_DEV;j_java01;_b-_1UA4iEeKoMfxGjj3v1A;0.1;Default;;begin;;
and I need full output
including logrow and print in java
Hi
Logrow? The message printed by tLogRow component? If so, you can use tFileOutputDelimited instead of tLogRow to output the result into file.
Hi
if your running the job on a linux machine you could edit the shellscripts that runs the job to write all messages on the console into a .txt file?
java -Xms256M -Xmx256M -cp classpath.jar: repo.jbname.jbname --context=Default "$@" > /consoleoutput/example.txt
Regards,
Brandon
Hi
I understand you now. But it is impossible to log all the message printed on the console to a file. If the log message captured by tStatCatcher does not meet your need. Usually, we customize the log message with tFixedFlowInput and append them into an existing log file. such as "The job begin to run, the start time is:"+TalendDate.getCurrentDate()
Sorry for bring this topic up, but in fact I had same issue in the past and I wrote a component that does the trick.
It allows you to redirect all the output from System.out and/or System.err to files on disk.
Check it here:
tRedirectOutput
http://www.talendforge.org/exchange/index.php?eid=837&product=tos&action=view