slogtest

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MPL-2.0 Imports: 6 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) *slog.Logger

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