Finished up my Groovy script, I like to add a line to indicate the end of execution in both log.info and external log file (I called it report in my script).
So, I added these lines:
log_date = new Date()
sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss")
list = "\n"+ sdf.format(log_date)+" End"
report << list
When I execute the script, a new window of information would pop up at the end to indicate the report filename. Please refer the screenshot below.
How do I get rid of this pop-up? The End line to indicate the end of execution is suffice.
Solved! Go to Solution.