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.
Join us at the Community Lounge.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend