package testlog

Import Path
	internal/testlog (on and

Dependency Relation
	imports one package, and imported by 2 packages

Involved Source Files
	d-> log.go

Exported Type Names

type Interface (interface) Interface is the interface required of test loggers. The os package will invoke the interface's methods to indicate that it is inspecting the given environment variables or files. Multiple goroutines may call these methods simultaneously. ( T) Chdir(dir string) ( T) Getenv(key string) ( T) Open(file string) ( T) Stat(file string) func Logger() Interface func SetLogger(impl Interface)
Exported Values
func Getenv(name string) Getenv calls Logger().Getenv, if a logger has been set.
func Logger() Interface Logger returns the current test logger implementation. It returns nil if there is no logger.
func Open(name string) Open calls Logger().Open, if a logger has been set.
func SetLogger(impl Interface) SetLogger sets the test logger implementation for the current process. It must be called only once, at process startup.
func Stat(name string) Stat calls Logger().Stat, if a logger has been set.