logging

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrettyHandler

func NewPrettyHandler(out io.Writer, opts *slog.HandlerOptions) (h *slog.JSONHandler, shutdown func())

NewPrettyHandler creates a background go routine that will write prettified output to logs written using the returned slog.JSONHandler instance.

To shut-down the background worker and wait for it's return, the caller should defer a call to the returned shutdown function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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