Must I call Sync for a child logger? #1214
Answered
by
yizhixiaotaozi
yizhixiaotaozi
asked this question in
Q&A
-
I would call rootLogger.Sync() using defer way in main.go. |
Beta Was this translation helpful? Give feedback.
Answered by
yizhixiaotaozi
Dec 20, 2022
Replies: 1 comment
-
I see rootLogger.Sync() call the same core in source code, its' unnessary to call childLogger.Sync(). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yizhixiaotaozi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see rootLogger.Sync() call the same core in source code, its' unnessary to call childLogger.Sync().