Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
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)));
System.setOut(ps);
System.setErr(ps);
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.