summaryrefslogtreecommitdiff
path: root/test/integration/log_consumer.go
blob: 4af438f2fc794b779ae9661c34bdf4e8ffbc16f4 (plain)
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)
}