How to debug the Script or write to logs file

Dear All,

I tried to write some script for some login, but it don't run, and I don't know where is the problem.

So, how can I debug the script or write a string to the logs file, it helps know where is an issue.

Pls, help me the way !!!

Thanks so much for any reply !!!

Hi,

When you are inside a process, all scripts and connectors are executed server side using a system user. So you should not try to login/logout from there.

You can use a SLF4J logger in your script like this:

def logger = org.slf4j.LoggerFactory.getLogger('myScriptLoggerName')

logger.info(‘An info log output’)

HTH
Romain

Hi Romain,

Thanks for your reply. I'll try on it !!!