Replace `console.log` to `api.log`.