Package testlog is a Go log.Logger that proxies to the Log function on a testing.T.
https://code.soquee.net/testlog/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 weeks ago | |
---|---|---|
.github/workflows | 4 weeks ago | |
CONTRIBUTING.md | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
go.mod | 3 years ago | |
testlog.go | 3 years ago | |
testlog_test.go | 3 years ago |
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.