1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package test import ( "testing" "github.com/testcontainers/testcontainers-go" ) type LogConsumer struct { t *testing.T } func (lc *LogConsumer) Accept(l testcontainers.Log) { content := string(l.Content) lc.t.Logf("%s", content) }