Created
January 3, 2017 16:56
-
-
Save spectodesign/bf1599abf01cf4e93964ecc9c220c48a to your computer and use it in GitHub Desktop.
This file contains 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
function sd_logger( $debug = false, $message = '', $error_log_path = '' ){ | |
if( $debug ){ | |
if( empty($error_log_path) ){ | |
error_log($message); | |
} else { | |
error_log($message, 0, $error_log_path); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment