log

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, opts ...Option)
	Info(msg string, opts ...Option)
	Warn(msg string, opts ...Option)
	Error(msg string, opts ...Option)
}

func New

func New(w io.Writer) Logger

type Option

type Option func(o *options)

func Bool

func Bool(key string, val bool) Option

func Duration

func Duration(key string, val time.Duration) Option

func Error

func Error(err error) Option

func Float64

func Float64(key string, val float64) Option

func Int

func Int(key string, val int) Option

func Int64

func Int64(key string, val int64) Option

func String

func String(key, val string) Option

func Time

func Time(key string, val time.Time) Option

func Title

func Title(title string) Option

func Uint64

func Uint64(key string, val uint64) Option

Jump to

Keyboard shortcuts

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