package log

import "github.com/testcontainers/testcontainers-go/log"

Index

Functions

func Printf

func Printf(format string, v ...any)

func SetDefault

func SetDefault(logger Logger)

SetDefault sets the default Logger instance.

Types

type Logger

type Logger interface {
	Printf(format string, v ...any)
}

Logger defines the Logger interface.

func Default

func Default() Logger

Default returns the default Logger instance.

func TestLogger

func TestLogger(tb testing.TB) Logger

TestLogger returns a Logging implementation for testing.TB This way logs from testcontainers are part of the test output of a test suite or test case.

Source Files

logger.go

Version
v0.36.0 (latest)
Published
Mar 27, 2025
Platform
darwin/amd64
Imports
4 packages
Last checked
4 hours ago

Tools for package owners.