Help us shape the future of Go! Take the 2026 Go Developer Survey

logging

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() *slog.Logger

func ErrAttr

func ErrAttr(err error) slog.Attr

func ReconfigureLogger

func ReconfigureLogger(w io.Writer, level slog.Level, format Format)

Types

type Format

type Format int
const (
	FormatConsole Format = iota + 1
	FormatJSON
)

Jump to

Keyboard shortcuts

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