slog

package
v0.0.0-...-e225f37 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error deprecated

func Error(msg string, err error, kvs ...any)

Error is a small wrapper

Deprecated: Use log/slog from the standard library of Go 1.21+

func Info deprecated

func Info(msg string, kvs ...any)

Info is a small wrapper

Deprecated: Use log/slog from the standard library of Go 1.21+

func New deprecated

func New() *slog.Logger

New is a small wrapper

Deprecated: Use log/slog from the standard library of Go 1.21+

func NewJSON deprecated

func NewJSON(w io.Writer) *slog.Logger

NewJSON is a small wrapper

Deprecated: Use log/slog from the standard library of Go 1.21+

func NewText deprecated

func NewText(w io.Writer) *slog.Logger

NewTextNew is a small wrapper

Deprecated: Use log/slog from the standard library of Go 1.21+

Types

type Logger deprecated

type Logger interface {
	Info(msg string, kvs ...any)
}

Logger is a small wrapper

Deprecated: Use log/slog from the standard library of Go 1.21+

Jump to

Keyboard shortcuts

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