Package testlog is a Go log.Logger that proxies to the Log function on a testing.T. https://code.soquee.net/testlog/
Go to file
Sam Whited a2e4d670ac
.github: disable mirroring
Signed-off-by: Sam Whited <sam@samwhited.com>
2022-07-17 07:03:17 -04:00
.github/workflows .github: disable mirroring 2022-07-17 07:03:17 -04:00
CONTRIBUTING.md Initial public release 2019-05-26 11:41:24 -05:00
LICENSE Initial public release 2019-05-26 11:41:24 -05:00
README.md Initial public release 2019-05-26 11:41:24 -05:00
go.mod Initial public release 2019-05-26 11:41:24 -05:00
testlog.go Initial public release 2019-05-26 11:41:24 -05:00
testlog_test.go Initial public release 2019-05-26 11:41:24 -05:00

README.md

testlog

The testlog package provides a convenient way to log to the test output when testing projects that log to a logger (such as the standard libraries "net/http".Server). This ensures that log output doesn't pollute test output and is shown under the correct test only if the test that generated the log output fails.

import (
	"code.soquee.net/testlog"
)

License

The package may be used under the terms of the BSD 2-Clause License a copy of which may be found in the LICENSE file.

Unless you explicitly state otherwise, any contribution submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.