The "session.log" is a method only for the screen-scraper log, and will not create a string for you to use. Instead make a function like:
String getDateTime()
{
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_HHmmss");
Date date = new Date();
return dateFormat.format(date);
}
For that script to work, you should also import some things at the top of the script:
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
The "session.log" is a method
The "session.log" is a method only for the screen-scraper log, and will not create a string for you to use. Instead make a function like:
String getDateTime()
{
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_HHmmss");
Date date = new Date();
return dateFormat.format(date);
}
And edit the string to use the function.
outputFile = "r:/event_capture/WI_Madison_Monona/" + "event_details_" + getDateTime() + ".txt";
For that script to work, you
For that script to work, you should also import some things at the top of the script:
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;