Accept data structure in Logger::devLog
This commit is contained in:
parent
d4a02dc314
commit
8703fe4032
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue