Create a Gateway Trace
Use this lib from our SDK to customize your Gateway traces
const gateway = require('linkapi-sdk/core/trace');
await gateway.trace({
status: 'SUCCESS', // THIS WILL BE SUCCESS EMPTY OR ERROR
name: 'Trace 1', // NAME THAT U CAN SEE IN THE LOGS
data: ctx // THIS CAN BE A STRING, NUMBER, OBJECT OR ARRAY
});
Updated over 4 years ago