snippet for console.log