Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

What is the best way to log messages from JavaScript code? Can we call message logging policy from JavaScript?

Not applicable
 
Solved Solved
1 4 5,850
1 ACCEPTED SOLUTION

adas
New Member

If you do console.log that should print to the system.log file. Alternately, you can prepare the logging payload in the JavaScript using a flow variable and then use that flow variable in a message logging policy following the JavaScript policy. You cannot call the msg logging policy from within the JavaScript policy.

You can also write your custom logger in the JavaScript policy, to do all this in the policy.

View solution in original post

4 REPLIES 4