A pop-up window called Information to display file name of log file
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2021
09:21 PM
07-20-2021
09:21 PM
A pop-up window called Information to display file name of log file
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.info "End"
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.
Thanks.
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2021
11:22 PM
07-20-2021
11:22 PM
Add "return" as last line in the script.
Regards,
Rao.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2021
06:11 AM
07-21-2021
06:11 AM
Yes, it works just by adding return as the last line. Thanks.
