Skip to content

Instantly share code, notes, and snippets.

@og-shawn-crigger
Created April 25, 2012 02:37
Show Gist options
  • Save og-shawn-crigger/2485727 to your computer and use it in GitHub Desktop.
Save og-shawn-crigger/2485727 to your computer and use it in GitHub Desktop.
Bonfire Snippet for Console Logging with class/method name
<?php
// This one is my debugging snippet
if ( $this->_debug === TRUE )
{
Console::log('['. get_class($this) .': '. __METHOD__ .'] . 'replacementwithusefultext' );
}
//
This is a useful error message snippet
logit('['. get_class($this) .': '. __METHOD__ .'] . 'replacementwithusefultext', 'error' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment