logtype

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendAttrs

func AppendAttrs(prefix []string, attrs []any) []string

AppendAttrs appends <name,value> pairs found in attrs to prefix and returns the resulting slice. It never appends in place.

Types

type Logger

type Logger interface {
	Debug(msg string, attrs ...any)
	Info(msg string, attrs ...any)
	Error(msg string, err error, attrs ...any)
}

Logger is a subset of weaver.Logger so that lower-level modules do not need to depend on weaver. A Logger can safely be used concurrently from multiple goroutines.

Jump to

Keyboard shortcuts

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