Parameters & Logging
  • 05 Dec 2022
  • Dark
    Light
  • PDF

Parameters & Logging

  • Dark
    Light
  • PDF

Article summary

Parameters & Logging

The first part of the specific method includes:

  • The method parameters used when sending a request. These parameters will vary depending on the data that needs to be sent to the other system. There can be 0 to n parameters.
  • Setting the origin for all trace logging and error handling.

Example: Parameter and logging in adapter.js

sampleAPIcall(param1, param2, ..., callback) {
  const meth = 'adapter- sampleAPIcall’;
  const origin = `${this.id}-${meth}`;
  log.trace(origin);

Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.