How can I save in pyFlux variable the information displayed in log window?

Run the following commands:

# to start the session you want to spy supervisor.getSpyOutputFortran().startSession()

# execute some commands checkMesh()

#format the output variable outputString = supervisor.getSpyOutputFortran().flushOutput().replace('\r','')

# close the spying session supervisor.getSpyOutputFortran().closeSession()

# use the variable (print line by line for instance) A=outputString.split("\n")
for line in A:
print line

These commands will allow putting in the character variable outputString all that is displayed in the log file.