get('http://localhost/api/options/xiaoming'); // $res->dump(); dump(app(TraceContext::class)->getTraceInfo()); dump(app(TraceContext::class)->getTraceInfo()); dump($info1 = app(TraceContext::class)->getTraceInfo()); $channel = \Log::build([ 'driver' => 'daily', 'path' => storage_path('logs/aa.log'), 'level' => 'debug' ]); \Log::stack([$channel])->info('hellow', ['traceInfo' => $info1]); \Log::stack([$channel])->debug('hellow', ['traceInfo' => $info1]); } }