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)
})()