support console.log sync