Turn a console.log into logger