cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

loggers in expressions of mashup builder

AP_9587236
17-Peridot

loggers in expressions of mashup builder

In mashups > Functions > Expressions > How to use loggers to see the values. 

2 REPLIES 2
DanZ
15-Moonstone
(To:AP_9587236)

In expressions/validators you can call the console of the Browser: console.log("Hi there")

TonyZhang
13-Aquamarine
(To:AP_9587236)

Don't know what values you want to output in expression but apart from console.log() mentioned by DanZ to log into browser dev tool's console, you can also use below way to output into the mashup logs which can be opened from the top tool bar when viewing Mashups.

 

•TW.log.info("value is " + val)

•TW.log.debug(xxx)

•TW.log.warning(xxx)

•TW.log.error(xxx)

https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Mashup_Builder/Migration/SupportedRuntimeFunctions.html

 

Top Tags