testlog

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2019 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL