Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.

Nikita

Output "$logs"

Nikita stores the log objects emitted by the action handler. They are available in the $logs property of the action output as an array of JavaScript objects.

It contains useful information used for debugging and introspection.

Usage

The $logs array is returned when the action Promise is fulfilled, thus, it is accessed using the async/await operators:

(async () => {
  // Access $logs
  const {$logs} = await nikita.execute('whoami')
  // Print $logs
  console.info($logs)
})()
Edit on GitHub
Navigate
About

Nikita is an open source project hosted on GitHub and developed by Adaltas.