zxcslo
April 16, 2019, 8:25am
1
Is there any way to write some debug info into the wrapper.log from client Startup Script?
I tried with
logger = system.util.getLogger('VK2Logger')
logger.warn("ClientStartUpScript: - There's already Ignition client running on %s. Closing second instance..." % (address))
but it’s not showing in wrapper.log.
I know about this: http://forum.inductiveautomation.com/t/why-no-message-in-the-wrapper-log/10191/2
I was just wondering if there is some way?
It’s not the most elegant solution, but you can raise an exception without catching it, and it’ll be written to wrapper.log (along with the stack trace).
just try print statement, for gateay scripts it automatically goes to wrapper.log. For client scripts I guess it will come in the console
1 Like
chi
April 16, 2019, 9:49am
4
Did you try system.util.sendMessage
? In the message handler on the gateway you can write to the log.
4 Likes
zxcslo
April 16, 2019, 11:09am
5
The beauty of this community… when you run out of ideas, there’s always someone with the new one…