testlog

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() log.Log

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 logFlag so we can pass it through arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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