Adding a "buffer" to logging output like *testing.T.Logf() that only prints on failure of the test