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.


Package Files


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-12-19. Refresh now. Tools for package owners.