Where does print output appear?

0 votes
asked Apr 25, 2017 in Python by taiden87 (150 points)
edited Apr 25, 2017 by taiden87
I am trying to use the print command in a Python script element and cannot tell where the output should appear.  I expected it to come up in the debug area at the bottom of the reference window. The rest of the grammar is working fine; I just cannot see the message I printed.

Update: I see the message embedded among all the Synalyze debug messages when I select All Debug Messages in the menu below the debug area. Is there a way to get only the user-generated messages?

I have also played with the Preferences and the message window, but I cannot come up with a combination that gives me just the INFO messages. I either get everything or nothing.

1 Answer

0 votes
answered Jun 17, 2017 by andreas (3,300 points)

You can use the log message calls to output messages at a certain log level. Additionally there's one method that ignores the log level:

logSrc = currentMapper.getCurrentLogSrc()

logSrc.logMessageForced("TST", 4711, SEVERITY_INFO, "My message")

...