I'd like to add some logs to expression and validation, I tried console.log() and logger.debug() , but both of them don't work.
How should I add the logs ?
Solved! Go to Solution.
Can you provide more information regarding your use case? What do you need to capture?
I want to check if the expression/validation is executed by adding the log like 'The expression xxx is being executed' and also display the values of the input parameters in the log .
There isn't any logging built in today. You could submit this as an idea on the Ideas board, which would allow others to vote on it. With enough votes, Engineering would consider it for a future release.
As an alternative, you could feed the inputs and outputs to an external service which would be responsible for logging the needed information.
Maybe try the TW.log client logger.
You can find an example in https://www.ptc.com/en/support/article?n=CS306951
The output will show in the Mashup Console (ctrl+alt+F9)