API 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: {} // THIS CAN BE A STRING, NUMBER, OBJECT OR ARRAY
});
When creating a custom trace, you can view it through the monitoring tab as in the image below:
![log.png 1693](https://files.readme.io/7573059-log.png)
Updated about 4 years ago