logging

package
v1.18.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger added in v1.17.0

func GetLogger(t *testing.T, envVarName string) zerolog.Logger

func GetTestLogger added in v1.17.0

func GetTestLogger(t *testing.T) zerolog.Logger

func Init

func Init()

Types

type CustomT added in v1.17.0

type CustomT struct {
	*testing.T
	L zerolog.Logger
	// contains filtered or unexported fields
}

CustomT wraps testing.T for two puposes: 1. it implements Write to override the default logger 2. it implements Printf to implement the testcontainers-go/Logging interface

func (CustomT) Printf added in v1.17.0

func (ct CustomT) Printf(format string, v ...interface{})

Printf implements the testcontainers-go/Logging interface.

func (*CustomT) Write added in v1.17.0

func (ct *CustomT) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL