Use generator#log() method instead of console.log