You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like the ability to control the depth that the T.Logf function uses to display the log caller so that wrapping T.Logf() still outputs correct file names and log lines.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
I made a lib which requires a logger struct of the following interface:
For testing I created the following logger:
What did you expect to see?
I would like the ability to control the depth that the
T.Logf
function uses to display the log caller so that wrappingT.Logf()
still outputs correct file names and log lines.What did you see instead?
The file names and log lines are wrong due to the wrapping made arround
T.Logf
The text was updated successfully, but these errors were encountered: