I’ve been using _log.info as a way to debug scripts. This makes log entries I’m wondering if it’s possible to insert log entries in the individual message logs? It would be more convenient to do it that way than going over to the application log every time I want to inspect the data.
Hi IHarper,
Similar to using the special _log.info item to log information to the application log, it is possible to log information to the logs of your individual message using the special _message.log item. This is covered in our documentation here: https://cdn.cdata.com/help/AZK/mft/Introduction-to-ArcScript.html#logging-connector-events
Alternatively, if you are working with a script where you push a file to output, you can use the .log attribute in an item that you are pushing to the output. This would also create an entry in the logs of the output and is mentioned in our documentation here: https://cdn.cdata.com/help/AZK/mft/Script.html#using-the-arcpush-keyword
For example if you use the below in a script connector, you should see the .log value in your message logs.
<arc:set attr="output.filepath" value="=filepath]" />
<arc:set attr="output.log" value="This is a new log entry!" />
<arc:push item="output" />
Would this work for you?
This is helpful thanks! We’re on a 2023 build so we don’t have access to this feature (which is why I didn’t see it when reviewing the docs). I’ll plan to upgrade soon so we can take advantage of this new feature.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.