Suppose the user has authored the following Node.js function. You want to execute it in webtasks while capturing the output generated by console.log
calls within that function:
function (param, callback) {
console.log('In my custom function. Parameter is:', param);
callback(null, { hello: 'world' });
}