Skip to content

Instantly share code, notes, and snippets.

@spectodesign
Created January 3, 2017 16:56
Show Gist options
  • Save spectodesign/bf1599abf01cf4e93964ecc9c220c48a to your computer and use it in GitHub Desktop.
Save spectodesign/bf1599abf01cf4e93964ecc9c220c48a to your computer and use it in GitHub Desktop.
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