slogtest

package
v0.0.0-...-862f905 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(tb testing.TB, opts *slog.HandlerOptions) *wlog.WLogger

NewLogger returns a new slog text logger that outputs to `t.Log`. This helps keep test output better formatted, and allows it to be differentiated in case of a failure during a parallel test suite run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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