Browse Source

Accept data structure in Logger::devLog

pull/6106/head
Hypolite Petovan 2 years ago
parent
commit
8703fe4032
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Core/Logger.php

+ 4
- 0
src/Core/Logger.php View File

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


Loading…
Cancel
Save