Pankaj,
So did you check in NWA?
For the code-
Import the below in you java file-
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.PrintStream;
Declare global variable in your class-
public PrintStream logger = null;
and finally use below in proper try catch
try {
logger = new PrintStream(new FileOutputStream(new File("logfile.txt")));
}
catch(Exception e)
{}
Regards,
Atul