Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Louis,
You can simply use a tFileOutputDelimited, that you put after your tLogRow, it will put in a file the same data that goes in the tLogRow.
Just create a row from your tLogRow to the tFileOutputDelimited.
Exception in component tFileInputProperties_1
java.io.FileNotFoundException: P:\export 2Talend\assistance_equipe_0.1\assistance_equipe_0.1\assistance_equipe\louisdevdivers\assistance_equipe_0_1\contexts\Default.properties (Le chemin d'accès spécifié est introuvable)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at louisdevdivers.assistance_equipe_0_1.assistance_equipe.tFileInputProperties_1Process(assistance_equipe.java:443)
at louisdevdivers.assistance_equipe_0_1.assistance_equipe.runJobInTOS(assistance_equipe.java:1977)
at louisdevdivers.assistance_equipe_0_1.assistance_equipe.main(assistance_equipe.java:1848)
class Util_tLogRow_1 {
String[] des_top = { ".", ".", "-", "+" };
String[] des_head = { "|=", "=|", "-", "+" };
String[] des_bottom = { "'", "'", "-", "+" };
String name="";
java.util.List<String[]> list = new java.util.ArrayList<String[]>();
int[] colLengths = new int;
public void addRow(String[] row) {
for (int i = 0; i < 0; i++) {
if (row!=null) {
colLengths = Math.max(colLengths, row.length());
}
}
list.add(row);
}
public void setTableName(String name) {
this.name = name;
}
public StringBuilder format() {
StringBuilder sb = new StringBuilder();
return sb;
}
}
Util_tLogRow_1 util_tLogRow_1 = new Util_tLogRow_1();
util_tLogRow_1.setTableName("tLogRow_1");
util_tLogRow_1.addRow(new String[]{});
int nb_line_tLogRow_1 = 0;
Avoid if possible stuff like ">>"... these are shell specifics concept and absolutely not portable...
I see that under the hood tlogrow uses plain System.out object.
So you could, at the beginning of you job, inside a tjava, redirect globally the standard output... insert this code (add buffering if you need):
-------------------------
java.io.File file = new java.io.File("/temp/mylogfile_test.txt");
java.io.PrintStream ps = new java.io.PrintStream(new java.io.FileOutputStream(file));
System.setOut(ps);
-------------------------
this will redirect at the job level to the file specified.
hope it helps