-
logs := log.NewHelper( |
Beta Was this translation helpful? Give feedback.
Answered by
Waxion
Sep 18, 2024
Replies: 1 comment
-
如果你使用了DefaultCaller = Caller(4)来设置输出调用行号的话,可以试试改用 log.Caller(4+1),我理解是用了New** 就多套了一层 Call中的层级就要加1 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Sejenew
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果你使用了DefaultCaller = Caller(4)来设置输出调用行号的话,可以试试改用 log.Caller(4+1),我理解是用了New** 就多套了一层 Call中的层级就要加1