Back to

Package testlog

Latest Go to latest

The highest tagged major version is .

Published: May 26, 2019 | License: BSD-2-Clause | Module:


Package testlog is a log.Logger that proxies to the Log function on a testing.T.

It is used to group log messages under the tests that generated them in test output and to only show those messages if the test that generated them failed.


func New

func New(t testing.TB) *log.Logger

New returns a new logger that logs to the provided testing.T.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier