// Close disallows any further logging, preventing the test framework from complaining about
// logging post-test.
// Taking the write lock ensures all in-progress log calls complete before we close.
// This prevents a race condition after the test has completed.
tl.state.mu.Lock()
tl.state.mu.closed = true
tl.state.mu.Unlock()
}
func (tl *TestLogger) T() TestingT {