Replace process.stdout with log.data