How to get the debug print result from a gateway scheduled event

Script is now

Logger = system.util.getLogger("myLogger")
Logger.info("Hello")

Welcome to the forum, Robert. Please see Wiki - how to post code on this forum.

If you run these two lines from the script console within Designer, do you see any entries appear in Gateway Webpage @ Status --> Diagnostics --> Logs Designer Console @ Tools --> Console?
Edit to correct logging destination.

You shouldn't. Designer logs to its own console.

....these two lines...

...should always output to logger, no matter the context... no?

No.

The designer script console is a variant of Vision Client Context, which logs and prints locally, just like Vision. The designer, and Vision, are separate JVMs from the gateway, and printing/logging is per JVM.

Sorry for the misinformation...
Thanks for setting me straight, @pturmel. :beers: Will edit my post above.
From the system.util.getLogger docs:

Log messages generated from this function are always sent to the calling scope's console.

  • Designer - Designer Console
  • Vision - Vision Client Console: Help menu > Diagnostics > Console tab
  • Perspective and Gateway - Gateway's Diagnostic Logs page.