Skip to content

Send logs to

You can transfer logs directly with the ProficloudDevice-Node to The json object which should be sent to the input of the ProficloudDevice-Node should log as follows.

msg = {};
msg.payload = {"log": {"level": 2, "tag":"Node-RED","msg": "System tarted"}};
return msg;

To test it you can put this code in a function node of Node-RED and connect it with an injection node. The key “level” is the level of the log message (0 = Debug, 1 = Info, 2 = Warn, 3 = Error, 4 = Fatal). To identify from which component the message is from you can set the “tag”. The “msg” field is the actual log message.