Skip to content

Instantly share code, notes, and snippets.

View khepin's full-sized avatar

Sebastien Armand khepin

  • San Francisco, USA
View GitHub Profile
if (!function_exists('debuglog')) {
function debuglog($message) {
if (!is_string($message)) {
$message = print_r($message, true);
}
$message .= "\n";
$dir = ROOT . '/../logs/';
if (!is_dir($dir)) {
mkdir($dir);
}