Groovy - how to print real-time log message in job console?
Summary:
Hi,
I have a Groovy rule with long-running processes, for example the process needs to be iterate through 100 times for different combinations. I need to watch which combination it's currently processing for some debugging purpose, and I have the below added at beginning and ending of each iteration. However, it seems the log message print can only be shown once the rule is all complete, meaning I cannot see any log message during the process. Is there any way that can print the message into job console in real-time throughout the process?
start ……..
Date date_start = new Date()
String datePart_start = date_start.format("dd/MM/yyyy")
Tagged:
0