Accept data structure in Logger::devLog

This commit is contained in:
Hypolite Petovan 2018-11-10 08:17:33 -05:00
parent d4a02dc314
commit 8703fe4032

View file

@ -115,6 +115,10 @@ class Logger extends BaseObject
$processId = $a->process_id; $processId = $a->process_id;
} }
if (!is_string($msg)) {
$msg = var_export($msg, true);
}
$callers = debug_backtrace(); $callers = debug_backtrace();
$logline = sprintf("%s@\t%s:\t%s:\t%s\t%s\t%s\n", $logline = sprintf("%s@\t%s:\t%s:\t%s\t%s\t%s\n",
DateTimeFormat::utcNow(), DateTimeFormat::utcNow(),