testlog: code.soquee.net/testlog Index | Files

package testlog

import "code.soquee.net/testlog"

Package testlog is a log.Logger that proxies to the Log function on a testing.T.

It is used to group log messages under the tests that generated them in test output and to only show those messages if the test that generated them failed.

Index

Package Files

testlog.go

func New Uses

func New(t testing.TB) *log.Logger

New returns a new logger that logs to the provided testing.T.

Package testlog imports 2 packages (graph). Updated 2019-10-30. Refresh now. Tools for package owners.