mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
exam support valid multiple
This commit is contained in:
@@ -14,7 +14,11 @@ class NexusFormatter
|
||||
|
||||
protected function formatter()
|
||||
{
|
||||
$format = "[%datetime%] [" . nexus()->getRequestId() . "] %channel%.%level_name%: %message% %context% %extra%\n";
|
||||
$id = 'NO_REQUEST_ID';
|
||||
if (nexus()) {
|
||||
$id = nexus()->getRequestId();
|
||||
}
|
||||
$format = "[%datetime%] [" . $id . "] %channel%.%level_name%: %message% %context% %extra%\n";
|
||||
return tap(new LineFormatter($format, 'Y-m-d H:i:s', true, true), function ($formatter) {
|
||||
$formatter->includeStacktraces();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user