Created
April 25, 2012 02:37
-
-
Save og-shawn-crigger/2485727 to your computer and use it in GitHub Desktop.
Bonfire Snippet for Console Logging with class/method name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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