I'm unsure about what the best approach would be to collect log console output data to a csv file.
At the moment I'm dumping all of the console output to a file and the resulting txt is, which I want as a csv with headers
tJava_1 code is :
java.io.File logFile = new java.io.File("_logs/"+projectName+".log");
java.io.PrintStream ps = new java.io.PrintStream(new java.io.BufferedOutputStream(new java.io.FileOutputStream(logFile)));
How can I get this into a csv?
Header > status code (200 or 400) | person_id | contact_id | Full Name | Error Message (if applicable)
Data > 200 150014236 001O000000lJwuEIAS Jono Bridges
400 00128000003KXkJAAW Acme A surname is required
P.S. - The tFileOutputDelimited components just appended each console output in the first column and wasn't as good as the tjava txt file which at least grouped the data together.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema