Skip to main content
Published: July 07 2006, 6:21:00 PMUpdated: November 28 2020, 2:12:31 PM

 

1. Add these lines to your class Constructor :

String apiOutputFile="c:\\tmp\\api_output.txt";
String errorOutputFile="c:\\tmp\\api_error.txt";
try {
java.io.PrintStream output = new java.io.PrintStream(new java.io.BufferedOutputStream(new java.io.FileOutputStream(apiOutputFile)));
System.setOut(output);
java.io.PrintStream errors = new java.io.PrintStream(new java.io.BufferedOutputStream(new java.io.FileOutputStream(errorOutputFile)));
System.setErr(errors);
}catch(java.io.IOException ioe) {
//handle exception ...
}

2. Enable logging following the instructions in this KB article:
https://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=345

How well did this answer your question?
Answers others found helpful