Best way to print values from Gateway Event Scipt for debugging purposes

I'm debugging a Gateway Tag Change Script and need to print some intermediary values from my program.

Which console or log would be easiest to do this in? What is the syntax?

You'll print to the gateway logger that you can view from the gateway web interface:

1 Like

Thank you. Does this method allow you to print numbers (integers or floats) to the log?

Yes. Take a look at some of the examples on the page that @michael.flagler linked. You can use either Python's or Java's formatting syntax to inject pretty much anything into the log message.

1 Like