Write message in log

Hello,
I have a script attach to a tag wich is not working, i would like to print message in the log but when i try it in the script console i have nothing in the log.


Do i have to create first the logger named “myLogger”?
Is there best way to debug script attach to tag?

Read this post:

And this one:

1 Like

Thank you for your advice, it work!

  1. In the script console system.util.getLogger or system.util.logger print in the Output Console:
  2. In a script attach to a tag it print well in the gateway log:

fwiw, it also prints into the Designer’s Diagnostic viewer as well from Help → Diagnostics

thanks for the tip :+1: