tRedirectOutput

Four Stars fem
Four Stars

tRedirectOutput

hi,

can anyone help with 'tRedirectOutput' component? i am not able to write the red line errors into a text file.

 is there any additional component settings needed?

 

Employee

Re: tRedirectOutput

Hi fem,

       

       Which version of Talend are you using? Are you using below component from Talend exchange?

 

https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&p=marketplace%...

     

      The error seems to be a date parse issue. Could you please add screen shots of the job and component you are using which will give more insight to the issue?

 

Warm Regards,

 

Nikhil Thampi

 

Moderator

Re: tRedirectOutput

Hello fem,

Is this custom component tRedirectOutput compatible with your current studio version?

Or you could add the following code to a tJava at the beginning of your job. if you haven't created the log directory you can add tCreateTemporaryFile before the tJava and check the box "Remove file when execution is over". this will create the directory for you if you don't have it already.

 java.io.File folder = new java.io.File("/var/");

java.io.File logFile = new java.io.File("/var/textLog.log");

java.io.PrintStream ps = new java.io.PrintStream(new java.io.FileOutputStream(logFile));
System.setOut(ps);

Let us know if it is OK with you.

Best regards

Sabrina
System.setErr(ps);

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog