summaryrefslogtreecommitdiff
path: root/test/integration/log_consumer.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/log_consumer.go')
-rw-r--r--test/integration/log_consumer.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/log_consumer.go b/test/integration/log_consumer.go
new file mode 100644
index 0000000..4af438f
--- /dev/null
+++ b/test/integration/log_consumer.go
@@ -0,0 +1,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)
+}