Setup of console.log to show function result