proposal: testing: make Log output configurable #28544
Closed
Labels
Milestone
Comments
Can you just use |
Thanks for the hint. I should have scanned the doc closer. |
We don't plan to support full customization of |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?Feature request: make
t.Log
output configurable.We're using a logging library in main code, and to show application log in test code, we redirect it via following code (in a file named
util_test.go
).It's nice that relevant log entries will be show per for each test case. But
t.Log
will always print the line number of file where it is called, and for our use case, it's always the same:Anyway to customize
t.Log
output? If it's not built-in yet, do you think it's worth a patch?The text was updated successfully, but these errors were encountered: