Make console.log safe.