slogt

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(tb testing.TB) *slog.Logger

JSON creates a new logger using a JSON handler and default options.

func JSONWithOptions

func JSONWithOptions(tb testing.TB, options *slog.HandlerOptions) *slog.Logger

JSONWithOptions creates a new logger using a JSON handler and default options.

func New

func New(tb testing.TB) *slog.Logger

New is an alias for Text.

func Text

func Text(tb testing.TB) *slog.Logger

Text creates a new logger using a text handler and default options.

func TextWithOptions

func TextWithOptions(tb testing.TB, options *slog.HandlerOptions) *slog.Logger

TextWithOptions creates a new logger using a text handler and the given options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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