testlog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT, LGPL-3.0, MIT Imports: 3 Imported by: 0

README

testlog

github.com/ethereum/go-ethereum/internal/testlog: a Go-ethereum util for logging in tests.

Since we use the same logging, but as an external package, we have to move the test utility to our own internal package.

Documentation

Overview

Package testlog provides a log handler for unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(t *testing.T, level log.Lvl) log.Handler

Handler returns a log handler which logs to the unit test log of t.

func Logger

func Logger(t *testing.T, level log.Lvl) log.Logger

Logger returns a logger which logs to the unit test log of t.

Types

This section is empty.

Jump to

Keyboard shortcuts

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