Cant set variable by logger.With #1407
Unanswered
xiaoke4869
asked this question in
Q&A
Replies: 1 comment
-
log file always output "init"
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my code,and I want to set trace_id into log file. The trace_id is generate on middleware
The result is:
console output:
BUT, zap.log didn't write traceId:
log file:
Strangely enough
log file:
code:
It works... What should I do? Thx.
Beta Was this translation helpful? Give feedback.
All reactions