October 2013
Beginner to intermediate
270 pages
5h 41m
English
This recipe shows how you can dump all logging data to a file, while still running the job in the Studio. It is particularly useful when debugging large data sets.
Open the jo_cook_ch10_0090_consoleToFile job.
The steps for dumping console output to a file from within a job are as follows:
tJava_1:// redirect the console output to a file from within studio System.setOut(new java.io.PrintStream(new java.io.BufferedOutputStream(new java.io.FileOutputStream(context.cookbookData+"outputData/chapter10/chapter10_jo_0090_consoleOut.txt"))));
Read now
Unlock full access