Skip to content
/ testlog Public

Package testlog is a Go log.Logger that proxies to the Log function on a testing.T. This is a mirror of the official repo.

License

Notifications You must be signed in to change notification settings

soquee/testlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Package testlog is a Go log.Logger that proxies to the Log function on a testing.T. This is a mirror of the official repo.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages