safe console.log