modify AM console.log