Documentation ¶ Index ¶ func New() log.Interface func Pattern() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New() log.Interface New logger for testing. You can set the log level for a given test by using the --log=<pattern> flag. For example, `go test ./... --log=debug` will run tests with debug logs on. func Pattern ¶ func Pattern() string Pattern returns the log level pattern so we can pass it through arguments. Types ¶ This section is empty. Source Files ¶ View all Source files testlog.go Click to show internal directories. Click to hide internal directories.