Simple trick to console.log with custom styling
Use below snippet:
<?php echo "<script>console.log('%c Price for ".$_item->getName()."(".$_item->getSku()."): " . $price . "','color:#FBF3E4; background: #105652; font-size: 16px;' );</script>"; ?>