Hello,
With the _log
, you can log an object together with the string, see:
_log.info(message: string, assistant: Object) : void
Like the console.log('Example...', obj)
but whit _log.info('Example...', obj)
.
Then to log the output of the remote is:
const response = _remote.post(...your parameters...)
_log.info('Remote response', response.json())
Another way is to convert the JSON object (Values.class) to JSON string and then concatenate:
const response = _remote.post(...your parameters...)
_log.info('Remote response: '+ response.json().toJSON())