slog

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package slog provides a compatibility layer for slog until go1.19 is out of maintenance.

Index

Constants

View Source
const (
	LevelDebug = sl.LevelDebug
	LevelInfo  = sl.LevelInfo
	LevelWarn  = sl.LevelWarn
	LevelError = sl.LevelError
)

Level aliases.

Variables

This section is empty.

Functions

func Any

func Any(key string, value any) sl.Attr

Any is an alias for slog.Any

func Group

func Group(key string, args ...any) sl.Attr

Group is an alias for slog.Group

func Int64

func Int64(key string, value int64) sl.Attr

Int64 is an alias for slog.Int64

func String

func String(key, value string) sl.Attr

String is an alias for slog.String

func Uint64

func Uint64(key string, value uint64) sl.Attr

Uint64 is an alias for slog.Uint64

Types

type Logger

type Logger = sl.Logger

Logger is an alias for slog.Logger

func Default

func Default() *Logger

Default is an alias for slog.Default

Jump to

Keyboard shortcuts

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